I have a wierd problem of cookie not enabling till I press F5(Refresh page) on my IE5 browser.
I have an index.php3 which sets one cookie.
It accepts username and password and encrypts in an admin.php3, sets another 2 cookies of login and password.
I look for the value of the cookie
using :
if (!isset($HTTP_COOKIE_VARS["cadmin"])) {
echo "this page cannot be accessed" ;
exit ;
}
Like wise in the same if condition i check for existence of Cookie of Username and Password (in total 3, with cadmin)
I get the above error 1st when loading admin.php3, and when i press F5, it allows me to go ahead to access the main menu.
Any idea, how to resolve this problem.
Before setting the cookie, i am checking for the DB access and setting the dblink(hostname,DBusername, DBpassword)
Thanks in advance,
Bijal.