[ Index ]

PHP Cross Reference of Akelos Framework

title

Body

[close]

/ -> AkSession.php (summary)

(no description)

Author: Bermi Ferrer
Copyright: Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
License: GNU Lesser General Public License
File Size: 255 lines (7 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 4 files
 AkCache/AkMemcache.php
 AkObject.php
 Ak.php
 AkCache/AkAdodbCache.php

Defines 1 class

AkSession:: (10 methods):
  initHandler()
  lookupStore()
  init()
  setSessionLife()
  _open()
  _close()
  _read()
  _write()
  _destroy()
  _gc()


Class: AkSession  - X-Ref

Memcache based session.

This class enables saving sessions into a database or memcache.
see: config/DEFAULT-DB-sessions.yml or  config/DEFAULT-MEMCACHE-sessions.yml

This can
be usefull for multiple server sites, and to have more
control over sessions.

<code>

require_once(AK_LIB_DIR.DS.'AkSession.php');
$SessionHandler = &AkSession::initHandler();

</code>

initHandler()   X-Ref
Original session value for avoiding hitting the cache system in case nothing has changed


lookupStore($options = null)   X-Ref
No description

init($options = array()   X-Ref
No description

setSessionLife($sessionLife)   X-Ref
$this->sessionLife setter

Use this method to set $this->sessionLife value

param: integer    $sessionLife    Secconds for the session to expire.
return: bool Returns true if $this->sessionLife has been set

_open()   X-Ref
Session open handler

return: boolean

_close()   X-Ref
Session close handler

return: boolean

_read($id)   X-Ref
Session read handler

param: string    $id    Session Id
return: string

_write($id, $data)   X-Ref
Session write handler

param: string    $id    
param: string    $data    
return: boolean

_destroy($id)   X-Ref
Session destroy handler

param: string    $id    
return: boolean

_gc()   X-Ref
Session garbage collection handler

return: boolean



Generated: Mon Oct 27 12:43:49 2008 Cross-referenced by PHPXref 0.6