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
Share on other sites

I'm assuming you mean the company Acenet? They use an Apache web server so you could cross reference the php ini on each web server and see if anything.s different.

 

If not its likely to be your code.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.