Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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 ears...here 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.


Comment on Re: Re: Re: HTACCES & Cookies
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.

    Steve.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-04-24 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls