Hello:
I've set up a authentication script in PHP, and have made it to where once the
user has been successfully authenticated, it puts the username ($global[username]),
password ($global[password]), and realname ($global[realname]) into a cookie. The
included functions file (./inc/common.inc) does this, my problem is:
Once it has been authenticated, the main page (index.php) goes through an if
statement for the variable $authok, if $authok is "1", then display the main page,
elseif $authok != 1, then display login, it displays the main page fine except, the
realname and the username don't show up, until I reload the page and the realname and
the username then show up. I don't understand why it is doing this. Please if you can,
help me fix this.
Thanks a lot
Rob Vella