| Apache mod_perl (3) |
How to make a cookie timeout (using Apache::AuthCookie)
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:
|