raynexeo Posted February 21, 2007 Share Posted February 21, 2007 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 More sharing options...
skali Posted February 21, 2007 Share Posted February 21, 2007 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. Link to comment https://forums.phpfreaks.com/topic/39445-php-session-crossing-problem/#findComment-190337 Share on other sites More sharing options...
redarrow Posted February 21, 2007 Share Posted February 21, 2007 post the login info that created the session lets cheek that first ok. Link to comment https://forums.phpfreaks.com/topic/39445-php-session-crossing-problem/#findComment-190342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.