Hi all,
My game has used session all along to track players from logging from the front page into the game but it is not working suddenly last night.. i think my host has changed something to the php conf. session.. but i am not sure how to work around it..
I echo the $_SESSION variable but it contains no value..
The following is my code:
if(!($_SESSION['name']) || !($_SESSION['pswd'])) {
$b=0;
header("Location: unaccess.php");
exit();
}
// display game data here
It seems that the player cannot see their data and is redirect to the unaccess page even if their username and password are correct..
The phpinfo() for my host is:
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On
Can anyone see what's wrong here :rolleyes:
Any help / advise is greatly appreciated. Thanks.