Movatterモバイル変換


[0]ホーム

URL:


 / 
Plack-Middleware-Session-0.34
River stage two • 40 direct dependents • 51 total dependents
/Plack::Session

NAME

Plack::Session - Middleware for session management

SYNOPSIS

# Use with Middleware::Sessionenable "Session";# later in your appuse Plack::Session;my $app = sub {    my $env = shift;    my $session = Plack::Session->new($env);    $session->id;    $session->get($key);    $session->set($key, $value);    $session->remove($key);    $session->keys;    $session->expire;};

DESCRIPTION

This is the core session object, you probably want to look atPlack::Middleware::Session, unless you are writing your own session middleware component.

METHODS

new ( $env )

The constructor takes a PSGI request env hash reference.

id

This is the accessor for the session id.

Session Data Management

These methods allows you to read and write the session data like Perl's normal hash.

get ( $key )
set ( $key, $value )
remove ( $key )
keys
session,dump

Session Lifecycle Management

expire

This method can be called to expire the current session id.

BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Stevan Little <stevan.little@iinteractive.com>

COPYRIGHT AND LICENSE

Copyright 2009, 2010 Infinity Interactive, Inc.

http://www.iinteractive.com

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

Module Install Instructions

To install Plack::Middleware::Session, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Plack::Middleware::Session

CPAN shell

perl -MCPAN -e shellinstall Plack::Middleware::Session

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp