DelphiFAQ Home Search:

How to make a cookie timeout (using Apache::AuthCookie)

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

I use module Apache::AuthCookie to protect parts of our web site by a login which creates a session cookie. I want this session cookie to expire after 30 minutes of inactivity. How can I do that?

Answer:

Module Apache::AuthCookie has already an option for that. In httpd.conf (or per directory, in htaccess.txt) you can configure the following:

PerlSetVar WhatEverSessionTimeout +30m

you may need to replace 'WhatEver' with the name of your protected section.


Comments:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.