Returns null if the session has been destroyed.
Returns Session name
getState( ) : string
Gets the state of the session (active, expired, destroyed, or error).
Returns State of the session
getStores( ) : array
Gets the names of session storage handlers that work in the current environment.
Returns Array of session storage handler names
getToken( forceNew : boolean=false ) : string
Gets the session token. The token is a random alphanumeric string that can be used to
increase security of requests.
Parameters [forceNew] Create a new token
Returns Token string
has( name : string, namespace : string='default' ) : boolean
Checks if a value is set in the session.
Parameters name Name of value to check
[namespace] Namespace to check the value in
Returns true if the value is set in the session
hasToken( tCheck : string, forceExpire : boolean=true ) : boolean
Compares the session token with tCheck. If the tokens do not match and forceExpire is
true, the session will be expired.
Parameters tCheck Token to check session against
forceExpire Expire session if invalid token
Returns true if tokens match
Appendix
[ 437 ]
isNew( ) : boolean
Dtermines if the session was created during this request.
Pages:
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604