Class Session
ProcessWire Session
Start a session with login/logout capability
This should be used instead of the $_SESSION superglobal, though the $_SESSION superglobal can still be used, but it's in a different namespace than this. A value set in $_SESSION won't appear in $session and likewise a value set in $session won't appear in $_SESSION. It's also good to use this class over the $_SESSION superglobal just in case we ever need to replace PHP's session handling in the future.
ProcessWire 2.x Copyright (C) 2010 by Ryan Cramer Licensed under GNU/GPL v2, see LICENSE.TXT
- Wire implements TrackChanges
-
Session
implements
IteratorAggregate
public
|
|
protected
boolean
|
|
public
mixed
|
|
public
array
|
|
public
this
|
|
public
this
|
|
public
mixed|null
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
#
___authenticate(
Return true or false whether the user authenticated with the supplied password |
public
this
|
|
public
|
|
protected
|
#
queueNotice( $text, $type, $flags )
Queue a notice (message/error) to be shown the next time this ession class is instantiated |
public
this
|
|
public
this
|
_(),
___changed(),
__call(),
__toString(),
_n(),
_x(),
addHook(),
addHookAfter(),
addHookBefore(),
addHookProperty(),
className(),
fuel(),
getAllFuel(),
getChanges(),
getFuel(),
getHooks(),
isChanged(),
isHooked(),
removeHook(),
resetTrackChanges(),
runHooks(),
setFuel(),
setTrackChanges(),
trackChange(),
trackChanges(),
untrackChange(),
useFuel()
|
protected
|
$config | |
#
Reference to ProcessWire $config object |
protected
|
$CSRF | null |
#
Instance of the SessionCSRF protection class, instantiated when requested from $session->CSRF. |
$changes,
$defaultHookOptions,
$fuel,
$hookMethodCache,
$localHooks,
$staticHooks,
$trackChanges,
$useFuel
|