API16

JSessionStorageApc/write: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Write session data to the SessionHandler backend. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JSessionStorageApc/write|Edit Des...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Write session data to the SessionHandler backend.
Write session data to the SessionHandler backend.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JSessionStorageApc/write|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JSessionStorageApc/write}}
 
 


===Syntax===
===Syntax===
Line 43: Line 41:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSessionStorageApc/write|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JSessionStorageApc/write}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=write
  category=write
  category=JSessionStorageApc
  category=JSessionStorageApc
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:04, 25 March 2017

Description

Write session data to the SessionHandler backend.



Syntax

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

Returns

boolean True on success, false otherwise.

Defined in

libraries/joomla/session/storage/apc.php

Importing

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

Source Body

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



Examples

Code Examples