Elgg  Version 1.10
MockSessionHandler.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Http;
3 
13 
17  public function open($save_path, $name) {
18  return true;
19  }
20 
24  public function read($session_id) {
25  return '';
26  }
27 
31  public function write($session_id, $session_data) {
32  return true;
33  }
34 
38  public function close() {
39  return true;
40  }
41 
45  public function destroy($session_id) {
46  return true;
47  }
48 
52  public function gc($max_lifetime) {
53  return true;
54  }
55 
56 }
57 
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
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...
read($session_id)
Reads the session data from the session storage, and returns the results.The session id...
destroy($session_id)
Destroys a session.The session id. boolean
close()
Closes the current session.boolean
open($save_path, $name)
Re-initialize existing session, or creates a new one.Called when a session starts or when session_sta...