|
const | SESSION_PREFIX = '_ah_sess_' |
|
A session handler interface using the GAE Memcache API.
google\appengine\ext\session\MemcacheSessionHandler::__construct |
( |
|
$memcacheContainer = null | ) |
|
Constructs the session handler instance.
- Parameters
-
google\appengine\ext\session\MemcacheSessionHandler::close |
( |
| ) |
|
Closes the session handler.
- Returns
- bool true if successful, false otherwise
static google\appengine\ext\session\MemcacheSessionHandler::configure |
( |
|
$memcacheContainer = null | ) |
|
|
static |
Configure the session handler to use the Memcache API.
- Parameters
-
Set so that it is clear that Memcache is being used for session handling, as retrieving session.save_handler just returns "user".
google\appengine\ext\session\MemcacheSessionHandler::destroy |
( |
|
$id | ) |
|
Destroy the data associated with a particular session ID.
- Parameters
-
string | $id | Session ID associated with the data to be destroyed |
- Returns
- bool true if successful, false otherwise
google\appengine\ext\session\MemcacheSessionHandler::gc |
( |
|
$maxlifetime | ) |
|
Garbage collection method - always returns true as this is handled by the Memcache expire function.
- Parameters
-
- Returns
- bool true if successful, false otherwise
google\appengine\ext\session\MemcacheSessionHandler::open |
( |
|
$savePath, |
|
|
|
$sessionName |
|
) |
| |
Opens the session handler.
- Parameters
-
string | $savePath | Not used |
string | $sessionName | Not ued |
- Returns
- bool true if successful, false otherwise
google\appengine\ext\session\MemcacheSessionHandler::read |
( |
|
$id | ) |
|
Read an element from Memcache with the given ID.
- Parameters
-
string | $id | Session ID associated with the data to be retrieved |
- Returns
- string data associated with that ID or bool false on failure
google\appengine\ext\session\MemcacheSessionHandler::write |
( |
|
$id, |
|
|
|
$data |
|
) |
| |
Write an element to Memcache with the given ID and data.
- Parameters
-
string | $id | Session ID associated with the data to be stored |
string | $data | Data to be stored |
- Returns
- bool true if successful, false otherwise
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/php/sdk/google/appengine/ext/session/MemcacheSessionHandler.php