Download the PHP package openlss/lib-session without Composer
On this page you can find all versions of the php package openlss/lib-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openlss/lib-session
More information about openlss/lib-session
Files in openlss/lib-session
Package lib-session
Short Description Abstract library for handling account sessions and cookies
License LGPL-3.0+
Homepage http://openlss.org
Informations about the package lib-session
openlss/lib-session
Abstract library for handling account sessions and cookies
Usage
Reference
(bool) Session::isLoggedIn()
Returns true when a valid session exists
(bool) Session::requireLogin()
Redirects to Url::login() if no session is found
(bool) Session::checkLogin()
Checks if a session needed to validate a login exists
(bool) Session::get($var=false)
Returns MDA key from the session registry When $var is FALSE the entire registry is returned
(bool) Session::storeSession($session)
Sets the session registry Returns TRUE on success FALSE on failure
(string) Session::getTokenFromSession()
Returns the current session token
(void) Session::startSession($token)
Stores the token in an actual PHP session
(void) Session::destroySession()
Destroys the session help in PHP
(array) Session::fetchByToken($token)
Return a session by token
(array) Session::findToken($id,$remote_ip,$user_agent)
- $id The identifier of the account
- $remote_ip Remote IP address used for session
- $user_agent The USER_AGENT field of the remote user Returns a session record
(mixed) Session::tokenCheck($token,$remote_ip,$return_token=false)
- $token The session token
- $remote_ip Remote IP of the session starter
- $return_token When FALSE this function returns BOOL otherwise returns the token
(string) Session::tokenCreate($id,$remote_ip,$user_agent)
- $id The identifier of the account
- $remote_ip Remote IP address used for session
- $user_agent The USER_AGENT field of the remote user Returns the newly created token
(string) Session::tokenDestroy($token)
Destroys the given token and returns that token
All versions of lib-session with dependencies
openlss/core-boot Version ~0.0.1
openlss/func-bcrypt Version ~0.0.1
openlss/func-gen Version ~0.0.1
openlss/func-mda Version ~0.0.1
openlss/func-mda-glob Version ~0.0.1
openlss/func-ui Version ~0.0.1
openlss/lib-url Version ~0.0.1