API16

JSessionStorageEaccelerator/write

From Joomla! Documentation

< API16:JSessionStorageEaccelerator
Revision as of 17:38, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Write session data to the SessionHandler backend. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JSessionStorageEaccelerator/write...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Write session data to the SessionHandler backend.

[Edit Descripton]

Template:Description:JSessionStorageEaccelerator/write

Syntax[edit]

write($id, $session_data)
Parameter Name Default Value Description
$id $id The session identifier.
$session_data $session_data The session data.

Returns[edit]

boolean True on success, false otherwise.

Defined in[edit]

libraries/joomla/session/storage/eaccelerator.php

Importing[edit]

jimport( 'joomla.session.storage.eaccelerator' );

Source Body[edit]

function write($id, $session_data)
{
        $sess_id = 'sess_'.$id;
        return eaccelerator_put($sess_id, $session_data, ini_get("session.gc_maxlifetime"));
}

[Edit See Also] Template:SeeAlso:JSessionStorageEaccelerator/write

Examples[edit]

<CodeExamplesForm />