delete

delete() Instance Public methods Delete the session from storage. Also closes the storage. Note that the session's data is not automatically deleted upon the session expiring.

close

close() Instance Public methods Store session data on the server and close the session storage. For some session storage types, this is a no-op.

[]=

[]=(key, val) Instance Public methods Set the session data for key key.

[]

[](key) Instance Public methods Retrieve the session data for key key.

new

new(request, option={}) Class Public methods Create a new CGI::Session object for request. request is an instance of the CGI class (see cgi.rb). option is a hash of options for initialising this CGI::Session instance. The following options are recognised: session_key the parameter name used for the session id. Defaults to '_session_id'. #session_id the session id to use. If not provided, then it is retrieved from the session_key parameter of the request, or automatically ge

update

update() Instance Public methods Save session state to the session's PStore file.

restore

restore() Instance Public methods Restore session state from the session's PStore file. Returns the session state as a hash.

delete

delete() Instance Public methods Close and delete the session's PStore file.

close

close() Instance Public methods Update and close the session's PStore file.

new

new(session, option={}) Class Public methods Create a new CGI::Session::PStore instance This constructor is used internally by CGI::Session. The user does not generally need to call it directly. session is the session for which this instance is being created. The session id must only contain alphanumeric characters; automatically generated session ids observe this requirement. option is a hash of options for the initializer. The following options are recognised: tmpdir the dir