Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dancer::session::yaml(3pm) [debian man page]

Dancer::Session::YAML(3pm)				User Contributed Perl Documentation				Dancer::Session::YAML(3pm)

NAME
Dancer::Session::YAML - YAML-file-based session backend for Dancer DESCRIPTION
This module implements a session engine based on YAML files. Session are stored in a session_dir as YAML files. The idea behind this module was to provide a transparent session storage for the developer. This backend is intended to be used in development environments, when looking inside a session can be useful. It's not recommended to use this session engine in production environments. CONFIGURATION
The setting session should be set to "YAML" in order to use this session engine in a Dancer application. Files will be stored to the value of the setting "session_dir", whose default value is "appdir/sessions". Here is an example configuration that use this session engine and stores session files in /tmp/dancer-sessions session: "YAML" session_dir: "/tmp/dancer-sessions" METHODS
reset to avoid checking if the sessions directory exists everytime a new session is created, this module maintains a cache of session directories it has already created. "reset" wipes this cache out, forcing a test for existence of the sessions directory next time a session is created. It takes no argument. This is particulary useful if you want to remove the sessions directory on the system where your app is running, but you want this session engine to continue to work without having to restart your application. DEPENDENCY
This module depends on YAML. AUTHOR
This module has been written by Alexis Sukrieh, see the AUTHORS file for details. SEE ALSO
See Dancer::Session for details about session usage in route handlers. COPYRIGHT
This module is copyright (c) 2009 Alexis Sukrieh <sukria@sukria.net> LICENSE
This module is free software and is released under the same terms as Perl itself. perl v5.14.2 2011-11-30 Dancer::Session::YAML(3pm)

Check Out this Related Man Page

Plack::Session::Store::DBI(3pm) 			User Contributed Perl Documentation			   Plack::Session::Store::DBI(3pm)

NAME
Plack::Session::Store::DBI - DBI-based session store SYNOPSIS
use Plack::Builder; use Plack::Middleware::Session; use Plack::Session::Store::DBI; my $app = sub { return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ]; }; builder { enable 'Session', store => Plack::Session::Store::DBI->new( dbh => DBI->connect( @connect_args ) ); $app; }; # set get_dbh callback for ondemand builder { enable 'Session', store => Plack::Session::Store::DBI->new( get_dbh => sub { DBI->connect( @connect_args ) } ); $app; }; # with custom serializer/deserializer builder { enable 'Session', store => Plack::Session::Store::DBI->new( dbh => DBI->connect( @connect_args ) # YAML takes it's args the opposite order serializer => sub { YAML::DumpFile( reverse @_ ) }, deserializer => sub { YAML::LoadFile( @_ ) }, ); $app; }; DESCRIPTION
This implements a DBI based storage for session data. By default it will use Storable and MIME::Base64 to serialize and deserialize the data, but this can be configured easily. This is a subclass of Plack::Session::Store and implements its full interface. SESSION TABLE SCHEMA
Your session table must have at least the following schema structure: CREATE TABLE sessions ( id CHAR(72) PRIMARY KEY, session_data TEXT ); Note that MySQL TEXT fields only store 64KB, so if your session data will exceed that size you'll want to move to MEDIUMTEXT, MEDIUMBLOB, or larger. AUTHORS
Many aspects of this module were partially based upon Catalyst::Plugin::Session::Store::DBI Daisuke Maki COPYRIGHT AND LICENSE
Copyright 2009, 2010 Daisuke Maki "<daisuke@endeworks.jp>" This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2011-03-29 Plack::Session::Store::DBI(3pm)
Man Page