OpenFrame::Slot::Session - Handle cookie-based sessions
# as part of the SLOTS entry in OpenFrame::Config: { dispatch => 'Local', name => 'OpenFrame::Slot::Session', config => { default_session => { language => 'en', country => 'UK', application => {}, }, }, },
OpenFrame::Slot::Session is an OpenFrame slot that can handle cookie-based session handling.
OpenFrame::Slot::Session
Apart from adding it as a SLOT early on in the slot process, the handling of session is done fairly transparently.
Sessions are currently handled by the Cache::Cache module. A default session can be passed as "default_session".
Cache::Cache
By default the module keeps session data in the OS temp directory - to override this, pass a 'directory' value.
After this slot is run, slots may request OpenFrame::Session objects. Applications using OpenFrame::Slot::Dispatch automatically get the session passed to them.
OpenFrame::Session
OpenFrame::Slot::Dispatch
Any information stored in the session hash will be magically available upon the next request by the same user. This is handled behind the scenes by sending and receiving a cookie.
James A. Duncan <jduncan@fotango.com>, Leon Brocard <leon@fotango.com>
Copyright (C) 2001-2, Fotango Ltd.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install OpenFrame, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame
CPAN shell
perl -MCPAN -e shell install OpenFrame
For more information on module installation, please visit the detailed CPAN module installation guide.