Overview

Namespaces

  • None
  • PHP
  • Pry
    • Auth
      • Interfaces
    • Config
    • Controller
    • Date
    • Db
    • Feed
      • Abstracts
      • Writers
    • File
      • Decorator
    • Form
      • Element
    • Image
    • Log
      • Writer
    • Net
      • Exception
    • Session
    • Util
    • Validate
      • Validator
    • View

Classes

  • DbStorage
  • Session
  • Overview
  • Namespace
  • Class
  • Tree

Class DbStorage

Gestion de session via BDD.

Permet de gérer les session PHP via une bdd plutôt que par cookie

Pry\Session\Session
Extended by Pry\Session\DbStorage
Namespace: Pry\Session
Package: Session
Category: Pry
Author: Olivier ROGER <oroger.fr>
Version: 0.9
Located at Session/DbStorage.class.php
Methods summary
public static Session_DbStorage
# getInstance( Zend_Db_Adapter_Abstract $dbh, array $opts, integer $ttl = null )

Singleton

Singleton

Parameters

$dbh
Zend_Db_Adapter_Abstract
$dbh Objet bdd
$opts
array
$opts Option de config de la table
$ttl
integer
$ttl Durée de vie de la session en seconde

Returns

Session_DbStorage

Overrides

Pry\Session\Session::getInstance()
public
# sessionClose( )
public
# sessionOpen( mixed $path = null, mixed $name = null )
public
# sessionDestroy( mixed $id )
public
# sessionGC( mixed $lifetime )
public
# sessionRead( mixed $id )
public
# sessionWrite( mixed $id, mixed $data )
Methods inherited from Pry\Session\Session
__get(), __isset(), __set(), check(), destroy(), refresh(), remove()
Properties inherited from Pry\Session\Session
$started
Pry API documentation generated by ApiGen 2.8.0