JSession/1.5
From Joomla! Documentation
< JSession(Difference between revisions)
(Layout updates) |
m (→See also: fixing link to API) |
||
| Line 127: | Line 127: | ||
<source lang="php">jimport( 'joomla.session.session' );</source> | <source lang="php">jimport( 'joomla.session.session' );</source> | ||
===See also=== | ===See also=== | ||
| − | * {{JVer|1.5}} '''JSession''' on [http://api.joomla.org/Joomla-Framework/Session/JSession.html api.joomla.org] | + | * {{JVer|1.5}} '''JSession''' on [http://api.joomla.org/1.5/Joomla-Framework/Session/JSession.html api.joomla.org] |
* {{JVer|1.5}} '''JSession source code''' on [[jframework15:session/session.php|JoomlaCode]] | * {{JVer|1.5}} '''JSession source code''' on [[jframework15:session/session.php|JoomlaCode]] | ||
* {{JVer|1.5}} Subpackage [[Subpackage Session/1.5|Session]] | * {{JVer|1.5}} Subpackage [[Subpackage Session/1.5|Session]] | ||
Latest revision as of 16:05, 13 February 2013
[edit]
JSession
[edit] Description
Description:JSession [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | __destruct | Session object destructor. |
| public | _createToken | Create a token-string. |
| public | _setCookieParams | Set session cookie parameters. |
| public | _setCounter | Set counter of session usage. |
| public | _setOptions | set additional session options |
| public | _setTimers | Set the session timers. |
| public | _start | Start a session. |
| public | _validate | Do some checks for security reason. |
| public | clear | Unset data from the session store. |
| public | close | Writes session data and ends session. |
| public | fork | Create a new session and copy variables from the old one. |
| public | getExpire | Get expiration time in minutes. |
| public | getId | Get session id. |
| public | getInstance | Returns a reference to the global Session object, only creating it if it doesn't already exist. |
| public | getName | Get session name. |
| public | getState | Get current state of session. |
| public | getStores | Get the session handlers. |
| public | getToken | Get a session token, if a token isn't set yet one will be generated. |
| public | has | Check wheter data exists in the session store. |
| 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 | _createId | Create a session id. |
| public | destroy | Frees all session variables and destroys all data registered to a session. |
| public | get | Get data from the session store. |
| public | hasToken | Method to determine if a token exists in the session. |
- Defined in libraries/joomla/session/session.php
- Extends JObject
[edit] Importing
jimport( 'joomla.session.session' );
[edit] See also
-
JSession on api.joomla.org
-
JSession source code on JoomlaCode
-
Subpackage Session
- Other versions of JSession
SeeAlso:JSession [Edit See Also]
[edit] User contributed notes
<CodeExamplesForm />