login.php
session_start();
$_SESSION['aid'] = 1;
echo $_SESSION['aid']; // 1
then index.php
session_start();
echo $_SESSION['aid']; // nothing is echoed
$_SESSION['test'] = 323;
echo $_SESSION['test']; // 323
error_log
PHP Notice: Undefined index: aid in...
this happens only on my subdomain - admin.example.com
on main domain - example.com - everything is ok
also this happens only on remote server
on my localhost - xampp, win7, chrome
- it's ok
any help?