Jump to content

[SOLVED] session variables


182x

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.