Configure session length with htaccess

Posted by brianpartridge on Server Fault See other posts from Server Fault or by brianpartridge
Published on 2011-03-19T14:56:21Z Indexed on 2011/03/19 16:11 UTC
Read the original article Hit count: 196

Filed under:
|
|

My home web server is running the stock OSX Apache 2 install. I have some directories with content that I want to secure, so I setup htaccess files for those areas. However, I find it annoying to have to login to those areas as frequently as I do. Once I'm logged in I'd like to not have to login again for a long time, similar to setting a long time in a cookie. But, I'd like to increase the life time of the authenticated session with htaccess.

I've googled but haven't found what I'm looking for, maybe because I'm looking for the wrong term. I want to configure the 'session length', 'session timeout', 'time limit', or 'expiration' for users authenticated via htaccess. Any thoughts?

© Server Fault or respective owner

Related posts about apache

Related posts about macosx