Session problem with Windows 8.1
Posted: 30. October 2013 09:59
My laptop running with XAMPP 1.8.1 on Windows 8.0 the following code does work fine:
with the following proper results after running 'localhost/xxx.php' 3 times:
2nifn2kse2ggefvs72b1vboim2
Array ( [Counter] => 1 )
2nifn2kse2ggefvs72b1vboim2
Array ( [Counter] => 2 )
2nifn2kse2ggefvs72b1vboim2
Array ( [Counter] => 3 )
After upgrading to XAMPP 1.8.2 -and- Windows 8.1 I got the following WRONG results:
kmehhb27uvetantjke43u0coe5
Array ( [Counter] => 1 )
e7n56u5c1ngougb0rae87m8r21
Array ( [Counter] => 1 )
s2rti3ojvscck3qj4dej73plp2
Array ( [Counter] => 1 )
You can see, that session_id is still different for the same user which MUST be the same!
I do still not know where the bug should be: in XAMPP 1.8.2 -or- in Windows 8.1?
What should I have to do to solve that problem?
- Code: Select all
<?php
session_start();
echo '<br />'.session_id().'<br />';
if (!isset($_SESSION['Counter'])) $_SESSION['Counter'] = 0;
++$_SESSION['Counter'];
print_r($_SESSION);
?>
with the following proper results after running 'localhost/xxx.php' 3 times:
2nifn2kse2ggefvs72b1vboim2
Array ( [Counter] => 1 )
2nifn2kse2ggefvs72b1vboim2
Array ( [Counter] => 2 )
2nifn2kse2ggefvs72b1vboim2
Array ( [Counter] => 3 )
After upgrading to XAMPP 1.8.2 -and- Windows 8.1 I got the following WRONG results:
kmehhb27uvetantjke43u0coe5
Array ( [Counter] => 1 )
e7n56u5c1ngougb0rae87m8r21
Array ( [Counter] => 1 )
s2rti3ojvscck3qj4dej73plp2
Array ( [Counter] => 1 )
You can see, that session_id is still different for the same user which MUST be the same!
I do still not know where the bug should be: in XAMPP 1.8.2 -or- in Windows 8.1?
What should I have to do to solve that problem?