Login Help
Moderator: General Moderators
Login Help
Can someone help me or point me to a tutorial that can help me?
Basicly i have a login script ok and i want to make it where users can't login with the same name while they already logged on with a session if that make since..
if not basicly if a user logs in and tries either getting on a different username or there name again it will tell them they can't login..
now is this possible?
Thank you
Smackie
Basicly i have a login script ok and i want to make it where users can't login with the same name while they already logged on with a session if that make since..
if not basicly if a user logs in and tries either getting on a different username or there name again it will tell them they can't login..
now is this possible?
Thank you
Smackie
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
No, SD got your question right then. If they are logged in, don't even give them the option of seeing the login form. And to protect yourself on the server-side, if the page loads and the user is logged, header() redirect them to another page so their is no chance that they will ever be able to see the login form or the processing page in an attempt to login twice.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Yeah, web development is very dependent of browsers, We are at the mercy of Mozilla, Opera, and Microsoft when we program and if they don't support something, there's not much that we can do about it other than attempt to fake it.Everah wrote:Cookies are not cross browser.
You don't see many complex in-browser games unless they are programmed through some other medium such as Flash, Java, or Shockwave.
If you don't mind them having several characters you should make all the characters belong to one account, and then only let the account be logged into from 1 computer a time.
Trying to stop someone from being on 2 at once without them belonging to the same account is going to be very hard otherwise.
-Kerry
Trying to stop someone from being on 2 at once without them belonging to the same account is going to be very hard otherwise.
-Kerry