API15:JSessionStorageMemcache/open
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Open the SessionHandler backend.
Description:JSessionStorageMemcache/open
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; }
[Edit See Also] SeeAlso:JSessionStorageMemcache/open
Examples
<CodeExamplesForm />
