Plack::Session(3pm) User Contributed Perl Documentation Plack::Session(3pm)NAME
Plack::Session - Middleware for session management
SYNOPSIS
# Use with Middleware::Session
enable "Session";
# later in your app
use 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 at Plack::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.
perl v5.12.4 2011-03-29 Plack::Session(3pm)
Check Out this Related Man Page
Plack::Session::State::Cookie(3pm) User Contributed Perl Documentation Plack::Session::State::Cookie(3pm)NAME
Plack::Session::State::Cookie - Basic cookie-based session state
SYNOPSIS
use Plack::Builder;
use Plack::Middleware::Session;
my $app = sub {
return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
};
builder {
enable 'Session'; # Cookie is the default state
$app;
};
DESCRIPTION
This is a subclass of Plack::Session::State and implements its full interface. This is the default state used in
Plack::Middleware::Session.
METHODS
new ( %params )
The %params can include path, domain, expires, secure, and httponly options, as well as all the options accepted by
Plack::Session::Store.
path
Path of the cookie, this defaults to "/";
domain
Domain of the cookie, if nothing is supplied then it will not be included in the cookie.
expires
Expiration time of the cookie in seconds, if nothing is supplied then it will not be included in the cookie, which means the session
expires per browser session.
secure
Secure flag for the cookie, if nothing is supplied then it will not be included in the cookie.
httponly
HttpOnly flag for the cookie, if nothing is supplied then it will not be included in the cookie.
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.
perl v5.12.4 2011-03-29 Plack::Session::State::Cookie(3pm)
Dear friends..
Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Hi All,
I have a question regarding recording the unix sessions.
I know the recording can be done using script comman, however i want to create a daily file of unix session. Also when i open multiple sessions how will the script multiple session. Please suggest some solutions also which file... (0 Replies)
Hi ppl, anyone has encounter this error before? I can't remote login to another machine residing in the same subnet via CDE and the error I get in var/dt/Xerrors is
XDMCP fatal error: Session declined No valid address
Warning:
Name: submenu_options_button
Class: XmRowColumn
... (2 Replies)
Hi,
Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting.
Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
hi,
I am facing a problem
from the remote system if i login to my AIX5.3 machine as root (thru telnet) the session does not expire for 2 hours even if the session is kept ideal
But whenever i do the same thing from some other user then the session is lost within 10 minutes (if session is kept... (2 Replies)
I am having one string like
./usr1/Server/temp/app.env ./usr1/Server/temp/upp/app.env ./usr1/Server/ORIG_temp/app.env ./usr1/Server/ORIG_temp/upp/app.env ./usr1/Server/work_temp_40/app.env ./usr1/Server/work_temp_40/upp/app.env ./usr1/fd/app.env ./usr1/PurgeArchive/app.env ./usr1/bm/bin/app.env... (6 Replies)
Hi,
I need a solution. I am using Putty/CRT to login in a AIX server from my windows machine. When i closed my putty/CRT prompt from windows client, server session is expire.
Ex. I have run a script to take RMAN backup from PUTTY/CRT command window, After closing command window RMAN backup... (2 Replies)
Hi, buddys.
I want to find a package to share the Session:
The main function is
1) on a ubuntu PC(1): <ssh -l username hostname>
2) share this session out with port(B). ( if this possible)
3) from other PC(2) use <telnet PC(1):port(B)>
4) PC(1) and PC(2) both can input... (2 Replies)
Hi Guys,
Is there a way to recover a lost session? I was working in a server and that lost the connection, now, I have a new session but all the previous processes that I was running, like scripts, etc, are still running.
Is there a way to bring them to my session?
Best regards,
Marco. (4 Replies)
I have taken putty session of a server from two separate machines namely HOST1(3 sessions) and HOST2(1 Session) .
However w command says there are 5 users
Confused over the output any clue will be appreciated.
# w
09:29:36 up 34 days, 15:48, 5 users, load average: 0.62, 4.33, 8.16
USER ... (3 Replies)