182x Posted July 13, 2007 Share Posted July 13, 2007 Hey guys, This may be a silly question but I was wondering if I have a login page with a single page to process its username and password that uses a switch to check for the user and then direct them to their home page. However with processing all the users on the same page does this mean that if another user logs in at the same time the first users session variables will be over written? For example if I login as admin and then login as a normal user without loggin the admin out, then try to access the admin page it claims the admin has logged out, so does this cause a problem for multiple users. Thanks. Link to comment https://forums.phpfreaks.com/topic/59761-solved-session-variables/ Share on other sites More sharing options...
pocobueno1388 Posted July 13, 2007 Share Posted July 13, 2007 I wouldn't think so...because even if you did redirect them to a new page, you would still be registering the sessions, and someone else could be redirected at the same time. I would say no, you should be fine with doing it your way. Link to comment https://forums.phpfreaks.com/topic/59761-solved-session-variables/#findComment-297053 Share on other sites More sharing options...
182x Posted July 13, 2007 Author Share Posted July 13, 2007 Thanks, it was weird as it was overwriting the variables when I used the same browser but on if I used another. Is that normal as well? Link to comment https://forums.phpfreaks.com/topic/59761-solved-session-variables/#findComment-297083 Share on other sites More sharing options...
mihail Posted July 13, 2007 Share Posted July 13, 2007 Yes, that is normal. Link to comment https://forums.phpfreaks.com/topic/59761-solved-session-variables/#findComment-297107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.