Hello All,
I have weirdest problem with PHP itself, that I've ever seen.
Setup:
PHP 5.33, (tried PHP 5.2.14 as well) under IIS
Problem: PHP deletes all session data as soon as I put exclamation point into a key in session array.
Example:
session1.php
session_start();
$_SESSION["foo"] = 'test';
header('Location: session2.php');
session2.php
session_start();
var_dump($_SESSION);
die();
Works fine, I see variable data printed out.
array(1) { ["foo"]=> &string(4) "test" }
But if I change line in first file to be
$_SESSION["foo!"] = 'test';
or
$_SESSION["f!oo"] = 'test';
I mean if I add exclamation point -then the $_SESSION array is empty when I get to second file
array(0) { }
I thought this is a buggy version of PHP when I was on 5.2.14, but upgrade didn't help. I don't even know what the problem might be. Maybe this has something to do with Windows setup, or IIS?
Any ideas?