Elgg  Version 1.10
SessionStorage.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Http;
3 
36 interface SessionStorage {
37 
44  public function start();
45 
51  public function isStarted();
52 
58  public function getId();
59 
66  public function setId($id);
67 
73  public function getName();
74 
81  public function setName($name);
82 
104  public function regenerate($destroy = false, $lifetime = null);
105 
118  public function save();
119 
127  public function has($name);
128 
137  public function get($name, $default = null);
138 
146  public function set($name, $value);
147 
153  public function all();
154 
161  public function replace(array $attributes);
162 
169  public function remove($name);
170 
176  public function clear();
177 }
getId()
Returns the session ID.
clear()
Clears all attributes.
replace(array $attributes)
Replaces all attributes.
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
setName($name)
Sets the session name.
$value
Definition: longtext.php:29
$default
Definition: checkbox.php:36
regenerate($destroy=false, $lifetime=null)
Regenerates id that represents this storage.
getName()
Returns the session name.
has($name)
Checks if an attribute is defined.
save()
Force the session to be saved and closed.
isStarted()
Checks if the session is started.
setId($id)
Sets the session ID.
start()
Starts the session.
if(!$collection_name) $id
Definition: add.php:17
$attributes
Definition: ajax_loader.php:13
all()
Returns all attributes.