ksumanth Posted March 16, 2013 Share Posted March 16, 2013 Hello Everyone, admin: I created one login form using sessions. In that login form i given some conditions 1. If status is inactive, username and password not match it is not going to inside page(inside.php). administrator 2.At the same i create administrator panel and i given two options for status 1.Active 2.InActive 3.Suppose i login in admin panel (username, password, status is active ).i am in inside.php. Now i am going to administrator panel and just change the status of userlogin "Inactive" If i refresh "inside.php" it should come to login page can any one have an idea how to make Quote Link to comment https://forums.phpfreaks.com/topic/275724-sessions-problem/ Share on other sites More sharing options...
PravinS Posted March 16, 2013 Share Posted March 16, 2013 you need to check user login status on every page and if it is inactive just destroy the session of logged in user. Quote Link to comment https://forums.phpfreaks.com/topic/275724-sessions-problem/#findComment-1418961 Share on other sites More sharing options...
ksumanth Posted March 16, 2013 Author Share Posted March 16, 2013 can you provide me any example regarding status Quote Link to comment https://forums.phpfreaks.com/topic/275724-sessions-problem/#findComment-1418965 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.