Session information Error??
Posted: Mon Dec 23, 2002 9:16 am
Hey all,
I'm having a few problems, my host is using php 4.2.1, on Apache.
Anyway, My admin panel which i'm building requires the admin username which is stored inside the session cookie on the server. However, as soon as my system goes from the validation.php page to the admin.php page, it doesnt recognise the session cookie as containing any data, but yet
session_start();
if (isset($_SESSION["username"]))
still allows them to view the page, rather than sending them back to the login screen?
Any ideas?
thanks,
Rob
I'm having a few problems, my host is using php 4.2.1, on Apache.
Anyway, My admin panel which i'm building requires the admin username which is stored inside the session cookie on the server. However, as soon as my system goes from the validation.php page to the admin.php page, it doesnt recognise the session cookie as containing any data, but yet
session_start();
if (isset($_SESSION["username"]))
still allows them to view the page, rather than sending them back to the login screen?
Any ideas?
thanks,
Rob