The Apache Haus Forum

Forum Topics => Apache 2.4 => Topic started by: casi91 on December 20, 2012, 02:31:24 PM

Title: Session Timeout
Post by: casi91 on December 20, 2012, 02:31:24 PM
Hi Community,

i search for a option in the httpd.conf to set a Sessiontimeout
i configured my Apache, that the Login is hostet by my Server.
As you can see here: https://forum.apachehaus.com/index.php?topic=848.0 (https://forum.apachehaus.com/index.php?topic=848.0)

And now i would like to make a "auto logoff" when the user is 30 or more minutes inactiv.
I didn't found anything, so I ask here.

Title: Re: Session Timeout
Post by: mario on December 20, 2012, 02:50:51 PM
it is SessionMaxAge (http://httpd.apache.org/docs/trunk/mod/mod_session.html#sessionmaxage). At least I think so. I haven't tried.
Title: Re: Session Timeout
Post by: Gregg on December 20, 2012, 07:32:40 PM
http://httpd.apache.org/docs/2.4/mod/mod_session.html#sessionmaxage
Title: Re: Session Timeout
Post by: casi91 on December 21, 2012, 11:51:54 AM
Thanks for the answers
i'll try it, when i have fixed my current Problem :-D
Title: Re: Session Timeout
Post by: casi91 on February 18, 2013, 11:15:23 AM
Hi there,
SessionMaxAge is the option i was searching for.
Now my last Problem is, that i want to redirect to my login-page after the session is obsolate.
Is there any Option in the Apache or have i to code this in php?
Title: Re: Session Timeout
Post by: mario on February 18, 2013, 11:43:28 AM
You could define an ErrorDocument (http://httpd.apache.org/docs/current/mod/core.html#errordocument) with the correct error number than the user will see that page.
Title: Re: Session Timeout
Post by: casi91 on February 18, 2013, 02:28:07 PM
Thanks for that.
It works fine :-)