Session library.
This is the code documentation for the SproutCMS project
Search documentation |
class SessionSession library.
Variables
Functions
public __constructvoid $Session->__construct ( ); On first session instance creation, sets up the driver and creates session. public createvoid Session::create ( [ array $vars ] ); Create a new session. public deletallvoid Session::deletall ( ); Removes all session variables. public deletevoid Session::delete ( string $keys ); Delete one or more variables. public destroyvoid Session::destroy ( ); Destroys the current session. public expireFlashvoid Session::expireFlash ( ); Expires old flash data and removes it from the session. public getmixed Session::get ( [ string $key [, mixed $default ]] ); Get a variable. Access to sub-arrays is supported with key.subkey. public getOncemixed Session::getOnce ( string $key [, mixed $default ] ); Get a variable, and delete it. public hasbool Session::has ( string $key ); This function does not have a description public idstring Session::id ( ); Get the session id. public instanceunknown Session::instance ( ); Singleton instance of Session. public keepFlashvoid Session::keepFlash ( [ string $keys ] ); Freshen one, multiple or all flash variables. public regeneratevoid Session::regenerate ( ); Regenerates the global session id. public setvoid Session::set ( string|array $keys [, mixed $val ] ); Set a session variable. public setFlashvoid Session::setFlash ( string|array $keys [, mixed $val ] ); Set a flash variable. public writeClosevoid Session::writeClose ( ); Runs the system.session_write event, then calls session_write_close. |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Wednesday, 5th August, 2026 at 03:31 pm |
|