JSessionStorageEaccelerator/read: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Read the data for a particular session identifier from the SessionHandler backend.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:... |
m clean up |
||
| Line 2: | Line 2: | ||
Read the data for a particular session identifier from the SessionHandler backend. | Read the data for a particular session identifier from the SessionHandler backend. | ||
{{Description:JSessionStorageEaccelerator/read}} | |||
{{subst:Description:JSessionStorageEaccelerator/read}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 39: | Line 37: | ||
</source> | </source> | ||
{{subst:SeeAlso:JSessionStorageEaccelerator/read}} | |||
{{SeeAlso:JSessionStorageEaccelerator/read}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:24, 24 March 2017
Description
Read the data for a particular session identifier from the SessionHandler backend.
{{subst:Description:JSessionStorageEaccelerator/read}}
Syntax
read($id)
| Parameter Name | Default Value | Description |
|---|---|---|
| $id | $id The session identifier. |
Returns
string The session data.
Defined in
libraries/joomla/session/storage/eaccelerator.php
Importing
jimport( 'joomla.session.storage.eaccelerator' );
Source Body
function read($id)
{
$sess_id = 'sess_'.$id;
return (string) eaccelerator_get($sess_id);
}
{{subst:SeeAlso:JSessionStorageEaccelerator/read}}
Examples
<CodeExamplesForm />