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

Class: HTTP_SessionServer_Storage_MDB2

Source Location: /HTTP_SessionServer-0.5.0/SessionServer/Storage/MDB2.php

Class Overview

HTTP_SessionServer_Storage
   |
   --HTTP_SessionServer_Storage_MDB2

Session storage for filesystem database.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: HTTP_SessionServer_Storage

HTTP_SessionServer_Storage::HTTP_SessionServer_Storage()
constructor
HTTP_SessionServer_Storage::close()
close the session
HTTP_SessionServer_Storage::commit()
commit the session
HTTP_SessionServer_Storage::destroy()
destroy the current session
HTTP_SessionServer_Storage::exists()
check, whether a key exists
HTTP_SessionServer_Storage::generateNewId()
generate a new session id
HTTP_SessionServer_Storage::get()
get a value from the session
HTTP_SessionServer_Storage::getAll()
get all values in the session
HTTP_SessionServer_Storage::getKeys()
get all session keys
HTTP_SessionServer_Storage::isOpen()
check, whether the session is open
HTTP_SessionServer_Storage::open()
open an existing session
HTTP_SessionServer_Storage::put()
store a value in the session
HTTP_SessionServer_Storage::regenerateId()
chage the session id
HTTP_SessionServer_Storage::remove()
remove a value from the session
HTTP_SessionServer_Storage::setAll()
set all values in the session

Class Details

[line 52]
Session storage for filesystem database.

This storage-driver needs PEAR::MDB2 to work.



[ Top ]


Method Detail

close   [line 126]

boolean close( )

close the session
  • Access: public

Overrides HTTP_SessionServer_Storage::close() (close the session)
[ Top ]

commit   [line 163]

boolean commit( )

commit the session
  • Access: public

Overrides HTTP_SessionServer_Storage::commit() (commit the session)
[ Top ]

destroy   [line 197]

boolean destroy( )

destroy the current session
  • Access: public

Overrides HTTP_SessionServer_Storage::destroy() (destroy the current session)
[ Top ]

open   [line 84]

boolean open( string $sid, [integer $mode = HTTP_SESSIONSERVER_STORAGE_MODE_READWRITE])

Opens an existing session or creates a new one.

The access-mode for the storage container is not important, as the database will handle concurrent accesses.

  • Access: public

Overrides HTTP_SessionServer_Storage::open() (open an existing session)

Parameters:

string   $sid   —  session id
integer   $mode   —  mode

[ Top ]


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