Page 1 of 1

creating a secure login

Posted: Fri Sep 18, 2009 1:52 pm
by Rockape
Hi all,

I'm trying to create a login script where the website will not allow the same user to login twice from different computers.

I have thoght of using sessions but have no clue how to go about it. Grateful for some advice.

thanks :banghead:

Re: creating a secure login

Posted: Fri Sep 18, 2009 3:41 pm
by pickle
When a user logs in, generate a session ID for the user, and store it in the database along with their username.

Whenever a user tries to login, check if a session ID exists for the username they entered. If it does, deny them entry.

Re: creating a secure login

Posted: Wed Sep 23, 2009 3:00 pm
by greyhoundcode
By the by, are you a Regt Gnr?

Re: creating a secure login

Posted: Tue Oct 27, 2009 1:28 pm
by hollywoods
Thanks pickle, I will use it too. :bow: