Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protected directory using .htaccess

Status
Not open for further replies.

webwingit

Technical User
Sep 17, 2002
13
CL
I have a protected directory using .htaccess. How can I assure that each user can only be logged in once? In other words I would like to say "Someone with that userid is already logged on to the system." rather than letting that person log in again and have two users logged in with the same Loginid?

Thanks in advance for any help.
 
There is no way to do that deterministically. And .htaccess won't do that at all.

HTTP isn't like FTP. With FTP, you connect to the server, then stay connected while you wander around the directory tree and upload and download data.

HTTP is a stateless protocol. Your browser goes to the site, fetches the data, then disconnects. You're only "logged on" for the few seconds it takes to transfer the data. That's why cookies were invented -- to allow data to persist between connections by having the browser carry it around.
______________________________________________________________________
TANSTAAFL!
 
thanks, again helpful and you are right, I guess I should have thought about it a bit more :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top