CGI::Cookie Setting Expiry
From: Robert TV (ducott_99_at_yahoo.com)
Date: 06/09/04
- Next message: Matt Garrish: "Re: Net::SMTP fails connection in CGI"
- Previous message: Uri Guttman: "Re: Cute bit of Perl to Assign $1,$2 to named variables"
- Next in thread: Eric Schwartz: "Re: CGI::Cookie Setting Expiry"
- Reply: Eric Schwartz: "Re: CGI::Cookie Setting Expiry"
- Reply: Matthew Braid: "Re: CGI::Cookie Setting Expiry"
- Reply: Matt Garrish: "Re: CGI::Cookie Setting Expiry"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 08 Jun 2004 23:43:32 GMT
Hello,
I got the basic coding from perdoc on the usage of use CGI::Cookie. The main
examples show an expiry of '+3M' which they say means 3 months. I would
like my cookie to expire after 10 minutes. Does anyone know the equivalent
value? I cannot locate any other info in perdoc on this issue. Another
question I would like to ask is ... if a cookie is expired, will it still
return data if fetched? Can Perl read the cookie and determine its expiry
time and print that data to screen?
[Why I'm Asking]
I am trying to build a timeout subroutine for my program. When a user logs
in, a cookie is set for 10 minutes. Each primary subroutine of the program
will check the cookie to make sure its not expired and data is being
returned, if not, user is directed back to login page. I am doing this to
prevent bookmarking of the software once logged in. If the cookie had not
expired, it writes a new 10 minute cookie then shows the relevant dat for
that section/subroutine.
TIA!! Robert
- Next message: Matt Garrish: "Re: Net::SMTP fails connection in CGI"
- Previous message: Uri Guttman: "Re: Cute bit of Perl to Assign $1,$2 to named variables"
- Next in thread: Eric Schwartz: "Re: CGI::Cookie Setting Expiry"
- Reply: Eric Schwartz: "Re: CGI::Cookie Setting Expiry"
- Reply: Matthew Braid: "Re: CGI::Cookie Setting Expiry"
- Reply: Matt Garrish: "Re: CGI::Cookie Setting Expiry"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|