CKSessionStore

Class/Module:
Class
In:
lib/cgikit.rb
Parent:
Object

Description

CKSessionStore is a class for saving session with database manager. However this class is for internal use. Use methods of CKApplication to manage sessions.

Customizing database manager

Database manager objects, such as CKSessionStore::FileStore, save sessions. The objects has these 3 methods, implement the methods if you develop or customize database manager class.

save:Saves the session.
clear:Clear the session.
restore:Returns session restored from the saved.

Methods

clear
new
restore
save

Attributes

database_manager [RW]

Classes and Modules

Class CKSessionStore::FileStore

Public Class Methods

new( application )

Public Instance Methods

clear( session_id )
restore( session_id )

Restore a session. Returns a restored session or nil if the session ID is not existed.

save( session )