Actions

API17

Difference between revisions of "JSession"

From Joomla! Documentation

m (JoomlaWikiBot moved page JSession/11.1 to API17:JSession without leaving a redirect: Robot: Moved page)
m (User contributed notes: moving preparation)
Line 149: Line 149:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JSession]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 17:07, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JSession

Description

Description:JSession [Edit Descripton]

Methods

Visibility Method name Description
public __construct Constructor.
public __destruct Session object destructor.
public clear Unset data from the session store.
public close Writes session data and ends session.
public destroy Frees all session variables and destroys all data registered to a session.
public fork Create a new session and copy variables from the old one.
public get Get data from the session store.
public getExpire Get expiration time in minutes.
public getId Get session id.
public getName Get session name.
public getState Get current state of session.
public getToken Get a session token, if a token isn't set yet one will be generated.
public has Check whether data exists in the session store.
public hasToken Method to determine if a token exists in the session.
public isNew Check whether this session is currently created.
public restart Restart an expired or locked session.
public set Set data into the session store.
public static getFormToken Method to determine a hash for anti-spoofing variable names.
public static getInstance Returns the global Session object, only creating it if it doesn't already exist.
public static getStores Get the session handlers.
protected _createId Create a session id.
protected _createToken Create a token-string.
protected _setCookieParams Set session cookie parameters.
protected _setCounter Set counter of session usage.
protected _setOptions Set additional session options.
protected _setTimers Set the session timers.
protected _start Start a session.
protected _validate Do some checks for security reason.
  • Defined in libraries/joomla/session/session.php
  • Extends JObject

Importing

jimport( 'joomla.session.session' );

See also

SeeAlso:JSession [Edit See Also]

User contributed notes

<CodeExamplesForm />