Php Sessions
-
Hi, Can someone please tell me how I can control user logins using session? for expample, when the user logouts from the account, he is redirected back to the home page. but, if he clicks back the account is displayed again. this means the session was not ended. how can i get over this problem? thnks in advance
-
Hi, Can someone please tell me how I can control user logins using session? for expample, when the user logouts from the account, he is redirected back to the home page. but, if he clicks back the account is displayed again. this means the session was not ended. how can i get over this problem? thnks in advance
You are forgetting to terminate the session on logout, or at least clear out the session variables that you are using to detect if someone is logged in. Because it is so hard to Google for how to terminate a session, here is the link http://www.php.net/manual/en/function.session-destroy.php[^]
-
Hi, Can someone please tell me how I can control user logins using session? for expample, when the user logouts from the account, he is redirected back to the home page. but, if he clicks back the account is displayed again. this means the session was not ended. how can i get over this problem? thnks in advance
-
Hi, Can someone please tell me how I can control user logins using session? for expample, when the user logouts from the account, he is redirected back to the home page. but, if he clicks back the account is displayed again. this means the session was not ended. how can i get over this problem? thnks in advance
You can also store sessions to database it is a good way to manage user sessions.
Arunkumar