Jump to content

PHP Session Crossing Problem


raynexeo

Recommended Posts

Im not sure how easy this will be to solve but im hoping I can get it worked out. My sessions as I said in the title keep getting crossed. When user1 logs in it shows user1 logged in but when you click on a page instead of being logged in as user1 you are logged in as the next user in the database and I dont know why. What would be some common problems for this. I could post some code if anyone needs it.

 

You would probably guess im pretty new with php if you did your right im still learning so any help on this would be great.

Link to comment
https://forums.phpfreaks.com/topic/39445-php-session-crossing-problem/
Share on other sites

I believe you are setting session variables on every page probably in an include file on all pages. And it seems that these session variables are not setting properly.

 

If this is the case then don't set session variables on each page. And only set them once when user logs into your system.

 

Some code will certainly help.

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.