Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: Re: HTACCES & Cookies

by kidd (Curate)
on Jun 26, 2002 at 14:19 UTC ( #177386=note: print w/replies, xml ) Need Help??

in reply to Re: Re: HTACCES & Cookies
in thread htaccess and cookies

The reason im making this changes its because I discovered that sometimes more than 3 people are using the same username and passwors, when its suppose to be a personal acount...what Im trying to do its to check if a username is log on at the same time from two different computers, that way I can make the username and password really personal...

If someone has a suggestion Im all was my plan:

1. Let each username to acces from two different computers(not at the same time, something like from work and at the house). I was thinkin to acomplish this by setting up cookies.
2. Save in a log when a member logs in. Everytime someone tries to log in, it checks the log and sees if that username its not already logged on. In case it is then denies access.

That was the plan. Im using .htpassword and .htacces, Im running out of ideas, so if someone could help me it would be great... 2.

Replies are listed 'Best First'.
Re: Re: Re: Re: HTACCES & Cookies
by stevenc (Novice) on Jun 26, 2002 at 14:30 UTC
    You can use Apache::Session (even under CGI) for this. Have a look at the documentation and see if it fits your needs. Another positive reason for rolling your own authentication routine is so you can log users out, something which can't be done with basic auth.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177386]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-04-19 15:17 GMT
Find Nodes?
    Voting Booth?