Actions

API16

JSessionStorageMemcache/read

< API16:JSessionStorageMemcache

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

Read the data for a particular session identifier from the SessionHandler backend.



Syntax

read($id)
Parameter Name Default Value Description
$id $id The session identifier.

Returns

string The session data.

Defined in

libraries/joomla/session/storage/memcache.php

Importing

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

Source Body

function read($id)
{
        $sess_id = 'sess_'.$id;
        $this->_setExpire($sess_id);
        return $this->_db->get($sess_id);
}



Examples

Code Examples


Advertisement