Actions

API15

Difference between revisions of "JSession"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JSession}} ===Defined in=== lib...)
 
 
Line 69: Line 69:
 
|Frees all session variables and destroys all data registered to a session
 
|Frees all session variables and destroys all data registered to a session
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.session.session' );</source>
 
<source lang="php">jimport( 'joomla.session.session' );</source>

Latest revision as of 12:32, 25 March 2010

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.

[Edit Descripton] Description:JSession

Contents

Defined in

libraries/joomla/session/session.php

Methods

Method name Description
__construct Constructor
__destruct Session object destructor
getInstance Returns a reference to the global Session object, only creating it if it doesn't already exist.
getState Get current state of session
getExpire Get expiration time in minutes
getToken Get a session token, if a token isn't set yet one will be generated.
getName Get session name
getId Get session id
getStores Get the session handlers
isNew Check whether this session is currently created
set Set data into the session store
has Check wheter data exists in the session store
clear Unset data from the session store
restart restart an expired or locked session
fork Create a new session and copy variables from the old one
close Writes session data and ends session
hasToken Method to determine if a token exists in the session. If not the session will be set to expired
get Get data from the session store
destroy Frees all session variables and destroys all data registered to a session

Importing

jimport( 'joomla.session.session' );

[Edit See Also] SeeAlso:JSession

Examples

<CodeExamplesForm />