NAME

OpenInteract2::SessionManager::File - Create sessions within a filesystem

SYNOPSIS

# In your configuration file

[session_info]
class         = OpenInteract2::SessionManager::File
impl_class    = Apache::Session::File
...
[session_info.params]
Directory     = /home/httpd/oi/sessions/data
LockDirectory = /home/httpd/oi/sessions/lock

DESCRIPTION

Provide a '_create_session' method for OpenInteract2::SessionManager so we can use a filesystem as a backend for Apache::Session.

METHODS

_validate_config( $session_config )

Ensure our configuration is valid.

For both the directories: if the directory is defined and there is no leading '/' or '\w:' pattern we prepend the website directory. So:

[session_info params]
Directory     = cache/sessions
LockDirectory = cache/sessions_lock

becomes:

Directory     => "$WEBSITE_DIR/cache/sessions"
LockDirectory => "$WEBSITE_DIR/cache/sessions_lock"
  • session_info.params.Directory (REQUIRED)

    Specify the directory in which to store sessions.

  • session_info.params.LockDirectory (REQUIRED)

    Specify the directory in which to store lock information.

_create_session( $session_config, [ $session_id ] )

Overrides the method from parent OpenInteract2::SessionManager. See configuration discussion in _validate_config and in the implementation class (e.g., Apache::Session::File.

SEE ALSO

Apache::Session::File

OpenInteract2::SessionManager

COPYRIGHT

Copyright (c) 2001-2004 Chris Winters. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHORS

Chris Winters <chris@cwinters.com>