CubeCart - FreeForums For All

CubeCart 5 => Developer's Kit => Topic started by: Chief! on February 09, 2012, 03:01:54 PM



Title: Session Class
Post by: Chief! on February 09, 2012, 03:01:54 PM
Session
- $_state = 'active'; string; Current session status
- $_session_timeout = 36000; int; Session timeout
- $_user_blocked   = false; bool; User blocked state
- static $_instance; instance; Class instance
const BLOCKER_FRONTEND = 'F';
const BLOCKER_BACKEND = 'B';
- __construct; final
+ __destruct
+ getInstance; static
+ blocked; Is a user blocked?
+ blocker; Block a user
+ checkToken; Check a form token
+ delete; Delete something from the session
+ destroy; Destroy session
+ get; Get data from the session
+ getBack; Get 'back' from the session
+ getId; Get session id
+ getName; Get session name
+ getState; Get the session state
+ getToken; Create a session token to help stop spam
+ has; Does the session have something
+ isEmpty; Is an element empty
+ restart; Restart / regenerate a session
+ set; Set a session value to something
+ setBack; Set a page back to the session
- _close; Close a session
- _createToken; Create a form token
- _namespace; Check & build the namespace
- _setTimers; Setup session timers
- _start; Start a session
- _validate; Validate a session exists in database
This is a test of a table floating to the right.