Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

plack::session(3pm) [debian man page]

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)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Telnet session does not expire

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)
Discussion started by: deepsteptom
1 Replies

2. Shell Programming and Scripting

Recording a UNIX Session

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)
Discussion started by: amitkhiare
0 Replies

3. Solaris

XDMCP fatal error: Session declined No valid address

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)
Discussion started by: xiaochensg
2 Replies

4. Virtualization and Cloud Computing

Adaptive Information Technology for Service Lifecycle Management

HPL-2008-80 Adaptive Information Technology for Service Lifecycle Management - Rolia, Jerry; Belrose, Guillaume; Brand, Klaus; Edwards, Nigel; Gmach, Daniel; Graupner, Sven; Kirschnick, Johannes; Stephenson, Bryan; Vickers, Paul; Wilcock, Lawrence Keyword(s): Software as a Service, Enterprise... (0 Replies)
Discussion started by: Linux Bot
0 Replies

5. Shell Programming and Scripting

Hiding Directories on a Session by Session basis

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)
Discussion started by: en7smb
3 Replies

6. UNIX for Advanced & Expert Users

Session logging

Is it possible to have a user session logged as an AIX process or initiated as a sub server? Can anyone please help? Gayathri (0 Replies)
Discussion started by: ggayathri
0 Replies

7. AIX

user session restriction

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)
Discussion started by: pchangba
2 Replies

8. Shell Programming and Scripting

how to get the specified content of the text into a variable.

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)
Discussion started by: dineshmurs
6 Replies

9. AIX

Session never expired If i closed client prompt

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)
Discussion started by: dearsumon
2 Replies

10. Ubuntu

Help:Is any package for Share Session?

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)
Discussion started by: surainbow
2 Replies

11. Linux

Session "hijacking" - Recover lost session

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)
Discussion started by: ocramas
4 Replies

12. UNIX for Dummies Questions & Answers

Not able to understand the output of w command

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)
Discussion started by: pinga123
3 Replies

13. UNIX for Dummies Questions & Answers

transponse row to coloumn output

dears i have row data as below: ======================================================================================== Session Count: 24580 Session Count: 13426 Session Count: 22533 Session Count: 0 Session Count: 0 Session Count: 15036 Session Count: 11625 Session Count: 6942... (3 Replies)
Discussion started by: thehero
3 Replies