Jump to content

$_SESSION question


gevensen

Recommended Posts

I just got through a server problem with a variable named $_SESSION['id']

What would happen was when I loaded a mysql request with id in it (usually what i name the main key in a table)

it would overwrite the value in the $_SESSION without specifically asking it to ie $_SESSION['id']=$id;

This was on an acenet server

I have the same thing on a bluehost server and wampserver and never had a problem

What I did on acenet was rename $_SESSION['id'] when declaring it to $_SESSION['usernumber'] and all my issues stopped

 

Anyone know why?

 

Is it a acenet problem?

 

My problem is fixed im just wondering if anyone has had a similar issue?????

Link to comment
https://forums.phpfreaks.com/topic/261605-_session-question/
Share on other sites

no i went thru it with a fine tooth comb so to speak

I was definately not resetting the session

This drove me nuts for about 2 months

I finally had the time today to sit down and track it down

The crazy thing was not everyone was affected.

I shared the desktop of a person in Oklahoma and watched them go thru it a few min ago

and it seems to be working perfect now

This person was having major issues

Go figure....

Link to comment
https://forums.phpfreaks.com/topic/261605-_session-question/#findComment-1340546
Share on other sites

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.