JSessionStorageMemcache/open: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 54: | Line 54: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=open | category=open | ||
category=JSessionStorageMemcache | category=JSessionStorageMemcache | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:08, 25 March 2017
Description
Open the SessionHandler backend.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
open($save_path, $session_name)
| Parameter Name | Default Value | Description |
|---|---|---|
| $save_path | $save_path The path to the session object. | |
| $session_name | $session_name The name of the session. |
Returns
boolean True on success, false otherwise.
Defined in
libraries/joomla/session/storage/memcache.php
Importing
jimport( 'joomla.session.storage.memcache' );
Source Body
function open($save_path, $session_name)
{
$this->_db = new Memcache;
for ($i=0, $n=count($this->_servers); $i < $n; $i++)
{
$server = $this->_servers[$i];
$this->_db->addServer($server['host'], $server['port'], $this->_persistent);
}
return true;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples