Static Public Member Functions | |
Methods to start and destroy sessions | |
These methods will setup and teardown user sessions. | |
| static | init ($name, $timeout=null) |
| Initialize the session with the given name. | |
| static | destroy () |
| Destroy the current session. | |
Methods for handling session data | |
These methods can be used to get and set session data. | |
| static | set ($name, $value) |
| Store a variable in the session. | |
| static | get ($name) |
| Obtain a value from the session. | |
| static | delete ($name) |
| Deletes a variable from the session. | |
| static | is_set ($name) |
| Checks if a variable is defined in the session. | |
Definition at line 18 of file session.lib.php.
| static AnewtSession::init | ( | $ | name, | |
| $ | timeout = null | |||
| ) | [static] |
Initialize the session with the given name.
| $name | The name this session should have. | |
| $timeout | The timeout value for this session. |
Definition at line 32 of file session.lib.php.
| static AnewtSession::set | ( | $ | name, | |
| $ | value | |||
| ) | [static] |
Store a variable in the session.
| $name | The variable name. | |
| $value | The value of the variable. |
Definition at line 80 of file session.lib.php.
| static AnewtSession::get | ( | $ | name | ) | [static] |
Obtain a value from the session.
If no value was set for the provided name, an error is thrown.
| $name | The variable name. |
Definition at line 96 of file session.lib.php.
| static AnewtSession::delete | ( | $ | name | ) | [static] |
Deletes a variable from the session.
If no value was set for the provided name, an error is thrown.
| $name | The name of the variable to delete. |
Definition at line 115 of file session.lib.php.
| static AnewtSession::is_set | ( | $ | name | ) | [static] |
Checks if a variable is defined in the session.
| $name | The variable name to check for. |
Definition at line 134 of file session.lib.php.
1.5.9