HTTP_Session2
[ class tree: HTTP_Session2 ] [ index: HTTP_Session2 ] [ all elements ]

Class: HTTP_Session2_Container_Creole

Source Location: /HTTP_Session2-0.5.0/HTTP/Session2/Container/Creole.php

Class Overview

HTTP_Session2_Container
   |
   --HTTP_Session2_Container_Creole

Creole container for session data


Author(s):

Version:

  • CVS: $Id: Container.php,v 1.6 2007/11/23 20:47:00 cweiske Exp $

Methods


Inherited Variables

Inherited Methods

Class: HTTP_Session2_Container

HTTP_Session2_Container::__construct()
Constrtuctor method
HTTP_Session2_Container::parseOptions()
Parse options passed to the container class
HTTP_Session2_Container::set()
Set session save handler

Class Details

[line 73]
Creole container for session data

Create the following table to store session data

  1.  CREATE TABLE `sessiondata` (
  2.      `id` CHAR(32NOT NULL,
  3.      `expiry` INT UNSIGNED NOT NULL DEFAULT 0,
  4.      `data` TEXT NOT NULL,
  5.      PRIMARY KEY (`id`)
  6.  );

  • Author: Tony Bibbs <tony@geeklog.net>
  • Version: CVS: $Id: Container.php,v 1.6 2007/11/23 20:47:00 cweiske Exp $


[ Top ]


Method Detail

__construct (Constructor)   [line 108]

void __construct( array $options)

Constrtuctor method

$options is an array with the options.
The options are:

  • 'dsn' - The DSN string
  • 'table' - Table with session data, default is 'sessiondata'
  • 'autooptimize' - Boolean, 'true' to optimize the table on garbage collection, default is 'false'.

  • Access: public

Overrides HTTP_Session2_Container::__construct() (Constrtuctor method)

Parameters:

array   $options   —  The options

[ Top ]

close   [line 160]

void close( )

Free resources
  • Access: public

[ Top ]

destroy   [line 256]

boolean destroy( string $id)

Destroy session data
  • Access: public

Parameters:

string   $id   —  The id of the session to delete.

[ Top ]

gc   [line 276]

boolean gc( int $maxlifetime)

Garbage collection
  • Todo: Figure out why it uses PEAR::DB
  • Todo: Figure out why the creole driver (DBAL!!!) needs a switch for different database systems.
  • Access: public

Parameters:

int   $maxlifetime   —  The lifetime of the cache.

[ Top ]

open   [line 151]

void open( $save_path, $session_name)

Establish connection to a database
  • Access: public

Parameters:

   $save_path   — 
   $session_name   — 

[ Top ]

read   [line 169]

void read( $id)

Read session data
  • Access: public

Parameters:

   $id   — 

[ Top ]

write   [line 192]

void write( $id, $data)

Write session data
  • Access: public

Parameters:

   $id   — 
   $data   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:11:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.