Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Session
array $_defaultOptions = 'array'Private list of php's ini values for ext/session null values will default to the php.ini value, otherwise the value below will overwrite the default ini value, unless the user has set an option explicity with setOptions()
Detailsbool $_defaultOptionsSet = 'false'Whether the default options listed in Zend_Session::$_localOptions have been set
Detailsbool $_destroyed = 'false'Whether or not session has been destroyed via session_destroy()
Detailsarray $_localOptions = 'array'List of options pertaining to Zend_Session that can be set by developers using Zend_Session::setOptions(). This list intentionally duplicates the individual declaration of static "class" variables by the same names.
Detailsint $_regenerateIdState = '0'Whether or not the session id has been regenerated this request.
Id regeneration state <0 - regenerate requested when session is started 0 - do nothing
0 - already called session_regenerate_id()
Detailsint $_rememberMeSeconds = '1209600'Default number of seconds the session will be remembered for when asked to be remembered
DetailsZend_Session_SaveHandler_Interface $_saveHandler = 'null'A reference to the set session save handler
Detailsbool $_sessionCookieDeleted = 'false'Whether or not session id cookie has been deleted
Detailsbool $_sessionStarted = 'false'Check whether or not the session was started
Detailsbool $_strict = 'false'Whether or not session must be initiated before usage
Detailsbool|bitset $_throwStartupExceptions = 'true'$_throwStartupException
Detailsbool $_unitTestEnabled = 'false'Whether or not Zend_Session is being used with unit tests
Detailsbool $_writeClosed = 'false'Whether or not write close has been performed.
Details__construct(
)
:
Constructor overriding - make sure that a developer cannot instantiate
Details_processStartupMetadataGlobal(
)
:
void_processGlobalMetadata() - this method initizes the sessions GLOBAL metadata, mostly global data expiration calculations.
Details_processValidators(
)
:
void_processValidator() - internal function that is called in the existence of VALID metadata
Detailsdestroy(
bool $remove_cookie
=
true, bool $readonly
=
true
)
:
voiddestroy() - This is used to destroy session data, and optionally, the session cookie itself
DetailsexpireSessionCookie(
)
:
voidexpireSessionCookie() - Sends an expired session id cookie, causing the client to delete the session cookie
DetailsforgetMe(
)
:
voidforgetMe() - Write a volatile session cookie, removing any persistent cookie that may have existed. The session would end upon, for example, termination of a web browser program.
DetailsgetId(
)
:
stringgetId() - get the current session id
DetailsgetIterator(
)
:
ArrayObjectgetIterator() - return an iteratable object for use in foreach and the like, this completes the IteratorAggregate interface
DetailsgetOptions(
string $optionName
=
null
)
:
array|stringgetOptions()
DetailsgetSaveHandler(
)
:
Zend_Session_SaveHandler_InterfacegetSaveHandler() - Get the session Save Handler
DetailsisDestroyed(
)
:
boolWhether or not session has been destroyed via session_destroy()
DetailsisReadable(
)
:
boolisReadable() - returns a boolean indicating if namespaces can write (use setters)
DetailsisRegenerated(
)
:
boolisRegenerated() - convenience method to determine if session_regenerate_id() has been called during this request by Zend_Session.
DetailsisStarted(
)
:
boolisStarted() - convenience method to determine if the session is already started.
DetailsisWritable(
)
:
boolisWritable() - returns a boolean indicating if namespaces can write (use setters)
DetailsnamespaceGet(
string $namespace
)
:
arraynamespaceGet() - get all variables in a namespace Deprecated: Use getIterator() in Zend_Session_Namespace.
DetailsnamespaceIsset(
string $namespace
)
:
boolnamespaceIsset() - check to see if a namespace is set
DetailsnamespaceUnset(
string $namespace
)
:
voidnamespaceUnset() - unset a namespace or a variable within a namespace
DetailsregenerateId(
)
:
voidregenerateId() - Regenerate the session id. Best practice is to call this after session is started. If called prior to session starting, session id will be regenerated at start time.
DetailsregisterValidator(
Zend_Session_Validator_Interface $validator
)
:
voidregisterValidator() - register a validator that will attempt to validate this session for every future request
DetailsrememberMe(
$seconds $seconds
=
null
)
:
voidrememberMe() - Write a persistent cookie that expires after a number of seconds in the future. If no number of seconds is specified, then this defaults to self::$_rememberMeSeconds. Due to clock errors on end users' systems, large values are recommended to avoid undesirable expiration of session cookies.
DetailsrememberUntil(
int $seconds
=
0
)
:
voidrememberUntil() - This method does the work of changing the state of the session cookie and making sure that it gets resent to the browser via regenerateId()
DetailssessionExists(
)
:
boolsessionExists() - whether or not a session exists for the current request
DetailssetId(
string $id
)
:
voidsetId() - set an id to a user specified id
DetailssetOptions(
array $userOptions
=
array
)
:
voidsetOptions - set both the class specified
DetailssetSaveHandler(
$saveHandler
)
:
voidsetSaveHandler() - Session Save Handler assignment
Detailsstart(
bool|array $options
=
false
)
:
voidstart() - Start the session.
Detailsstop(
)
:
voidstop() - Disable write access. Optionally disable read (not implemented).
DetailswriteClose(
bool $readonly
=
true
)
:
voidwriteClose() - Shutdown the sesssion, close writing and detach $_SESSION from the back-end storage mechanism.
This will complete the internal data transformation on this request.
Details