Re: [Dancer-users] Authentification expires.
Igor, Good point, this should be supported and documented and it currently is not. If I understand you correctly you would like to define when sessions are destroyed (because by default sessions are destroy when the browser is closed). The magic happens around Dancer/Session/Abstract.pm in the write_session_id() function, the best way to extend this time is to set the session_expires variable in you configuration file. I am not sure if you can do session_expires: "+3M" like CGI::Cookie, but this is a starting point. Let us know how you make out. dancer-users-request@perldancer.org
You can reach the person managing the list at dancer-users-owner@perldancer.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Dancer-users digest..."
Today's Topics:
1. Re: Authentification expires. (igor.bujna@post.cz)
----------------------------------------------------------------------
Message: 1 Date: Mon, 25 Oct 2010 17:23:48 +0200 (CEST) From: igor.bujna@post.cz Subject: Re: [Dancer-users] Authentification expires. To: David Precious<davidp@preshweb.co.uk> Cc: dancer-users@perldancer.org Message-ID: <127916.26799.29432-6010-12748608-1288020228@post.cz> Content-Type: text/plain; charset="iso-8859-2"
I think better will be if this option for expiration in session will be standart in Dancer. When i make CGI applications i use CGI::Session, where is option for expiration. I'm busy now and can whach on this later, if you think that is godo idea, i make later some patch for make this.
------------ P?vodn? zpr?va ------------ Od: David Precious <davidp@preshweb.co.uk> P?edm?t: Re: [Dancer-users] Authentification expires. Datum: 22.10.2010 12:50:09 ---------------------------------------- On Thursday 21 October 2010 14:34:23 igor.bujna@post.cz wrote:
Hi, is same function or plugin to make automaticaly Authentification expires or i must make own. Thank you
Assuming you're storing the fact that the user is authenticated in a session, I assume you just need the session to expire after a certain amount of inactivity - is that correct, or am I misunderstanding what you're asking for?
(Also, on an entirely unrelated note, I haven't forgotten about the changes you suggested for D::P::Database; I've just been rather busy lately!)
-- David Precious <davidp@preshweb.co.uk> http://blog.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/identica www.lyricsbadger.co.uk
"Programming is like sex. One mistake and you have to support it for the rest of your life". (Michael Sinz) _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
------------------------------
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
End of Dancer-users Digest, Vol 8, Issue 21 *******************************************
participants (1)
-
Al Newkirk & Associates