Session problem with Windows 8.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Session problem with Windows 8.1

Postby DeVrije » 30. October 2013 09:59

My laptop running with XAMPP 1.8.1 on Windows 8.0 the following code does work fine:
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?
DeVrije
 
Posts: 37
Joined: 26. April 2006 19:34

Re: Session problem with Windows 8.1

Postby Altrea » 30. October 2013 12:44

Running XAMPP 1.8.2-2 on Windows 7 Enterprise here and the script is working as expected.
Best guess: Browser (Cookie) Security / Settings
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Session problem with Windows 8.1

Postby DeVrije » 30. October 2013 21:25

It means that that big important problem should be caused by a fault of Windows 8.1, right?
What should we do to tell Microsoft about that problem, so that it can be solved by them as soon as possible?

I used the same cookies, security and settings as the one at Windows 7 -and- 8.0 where that problem does not occur!
DeVrije
 
Posts: 37
Joined: 26. April 2006 19:34

Re: Session problem with Windows 8.1

Postby Altrea » 30. October 2013 21:30

No, i am guessing that it is a browser (setting) problem (e.g. privacy modes which don't set any cookies which are needed for identifying the browser to assign the session to the request)
First thing you could try is choosing an alternative browser and test of the problem occurs there too.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Session problem with Windows 8.1

Postby DeVrije » 30. October 2013 21:54

Yeah, that problem is caused by the security! So it is solved now. Thank you very much for your excellent simple suggest!
DeVrije
 
Posts: 37
Joined: 26. April 2006 19:34

Re: Session problem with Windows 8.1

Postby Altrea » 30. October 2013 22:00

You are welcome. Glad your problem could get solved. :)
Have fun with XAMPP and all that fancy stuff 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 127 guests