Is there any problem in session handling functions of php 5.1.5?
Suppose I store member id in session["id"] on login and recall this variable again and again where I need to show options or membername who is logged in.
This was working exactly fine in all earlier versions on my machine, running IIS, windows xp, and php 5.1.4, it was working perfectly.
Now what is happening on my server, where I set
AddHandler application/x-httpd-php5 .php
in my .htaccess because some classes in my code need php 5.
Following is happening.
$id=$SESSION["id"]; //outputs $id=1 which is correct
$id=$GET["somepassedvariable"]; //outputs $id=765 which is also correct
now if i again check $_SESSION["id"] this will be changed to 765 means:
$id=$_SESSION["id"]; //outputs $id=765
which is wrong as nonewhere in the code session variable is changed!
Did any one know this? Is it a bug? I am tracking this thing down from yesterday, it has taken all my night and now I finally believe that its some bug in php 5.1.5!
What you people say?