hi friends,
Iam using php4 and mysql
Iam having some problems with session handling
Like iam having a simple login page say 4.php
here i ask the users to enter the name and password
At the top of this page iam using
session_start();
session_register("name");
session_register("pwd");
The varaibles are registered and also session id is craeted
when the values are entered the user goes to a page called 3.php
here in this page too i have included session_start();
at the top and i have a logout button
at the end of this page i have
session_unregister("name");
session_unregister("pwd");
so when the user logs out and he clicks back button of browser "Data Missing...............error comes
and on reloading the user can access the page
so i guess session is not being maintained properly.
and also where iam wrong?
what is the best way to handle sessions?
awaiting for teh help
Regards
Roopa