Elgg  Version 1.9
MockSessionHandler.php
Go to the documentation of this file.
1 <?php
2 
12 
16  public function open($save_path, $name) {
17  return true;
18  }
19 
23  public function read($session_id) {
24  return '';
25  }
26 
30  public function write($session_id, $session_data) {
31  return true;
32  }
33 
37  public function close() {
38  return true;
39  }
40 
44  public function destroy($session_id) {
45  return true;
46  }
47 
51  public function gc($max_lifetime) {
52  return true;
53  }
54 
55 }
open($save_path, $name)
Re-initialize existing session, or creates a new one.Called when a session starts or when session_sta...
read($session_id)
Reads the session data from the session storage, and returns the results.The session id...
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
close()
Closes the current session.boolean
destroy($session_id)
Destroys a session.The session id. boolean
gc($max_lifetime)
Cleans up expired sessions.Sessions not updated for max_lifetime seconds are removed. boolean
write($session_id, $session_data)
Writes the session data to the session storage.The session id. The encoded session data...