Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-11-2012, 05:30 PM   #1
Registered: Oct 2006
Posts: 300

Rep: Reputation: 32
How to authenticate users in Apache using a cookie?

I want to authenticate a user based on a cookie using Apache:
For accessing a url, I request a cookie. That cookie identifies the users:
The cookie "userAuthentication" contains the "username", the time the cookie was create and a hash function to ensure validity of the cookie.

The first time the user connects the url, the cookie is verified (checks that the hash is generated from username@creation-time). But the rest of the times that verification is not needed.

Can any tell me what modules do I have to use and an idea of how can it be done?

Old 04-11-2012, 07:57 PM   #2
Registered: Apr 2004
Distribution: Slackware
Posts: 295

Rep: Reputation: 272Reputation: 272Reputation: 272
I can't vouch for any of these, but you might want to consider mod_auth_tkt or mod_auth_cookie_mysql2/mod_auth_cookie_pgsql2.
Old 04-12-2012, 04:05 AM   #3
Registered: Oct 2006
Posts: 300

Original Poster
Rep: Reputation: 32
Thanks, I think it's what I was looking for, but I've to try it.


apache2, authentication

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Authenticate users to Apache by host/ISP and password wej Linux - Server 3 08-13-2010 03:30 PM
Using Active Directory to authenticate Apache users kenneho Linux - Server 4 09-10-2008 06:24 AM
Apache 2 is not working right when i try to authenticate users stormrider_may Linux - Networking 2 03-01-2006 05:06 AM
Apache reverse proxy and cookie momilla Linux - Networking 0 07-26-2005 09:58 AM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 09:01 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration