vishalonne Posted August 28, 2012 Share Posted August 28, 2012 Hello I want this feature in my site. If I Go on PHP forum and try to start new discussion without doing login process, it takes me to the login page and if enter my valid login id and password it directly takes me to page where I can start posting new post. In my site I want to implement same facility. I have already done login part if user click with doing login process on a link which requires login validation process then user will get a message for Enter login information.... Now I am not find the way "How I will take the user back to that same page where he/she want to go after his/her valid login". Need guidance me to do this Thank you for any support? Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/ Share on other sites More sharing options...
floridaflatlander Posted August 28, 2012 Share Posted August 28, 2012 Maybe a session and if for some reason there is no session ... back to the index.php Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/#findComment-1373201 Share on other sites More sharing options...
vishalonne Posted August 28, 2012 Author Share Posted August 28, 2012 Thank you for your consideration floridaflatlander but I can't understand what you want to say. If possible you can take look in my site www.cbsecsnip.in Home Page - > Computer Science -> XI - > Solved Materials (click this, required valid login) Now if user enter valid login from on home page he should see the page which is blocked (Solved Material) Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/#findComment-1373208 Share on other sites More sharing options...
PFMaBiSmAd Posted August 28, 2012 Share Posted August 28, 2012 The overall simplest solution is to just integrate the login on any page that needs it. See this post - http://forums.phpfreaks.com/index.php?topic=364349.msg1726012#msg1726012 Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/#findComment-1373211 Share on other sites More sharing options...
vishalonne Posted August 28, 2012 Author Share Posted August 28, 2012 Thank you for your consideration PFMaBiSmAd but I already integrated login code on every page. If possible you can take look in my site www.cbsecsnip.in Home Page - > Computer Science -> XI - > Solved Materials (click this, required valid login) Now if user enter valid login from on home page he should see the page which is blocked (Solved Material) Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/#findComment-1373212 Share on other sites More sharing options...
Jessica Posted August 28, 2012 Share Posted August 28, 2012 I doubt any of us are going to register for your site and try to login. Sorry. Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/#findComment-1373227 Share on other sites More sharing options...
vishalonne Posted August 28, 2012 Author Share Posted August 28, 2012 Registration not required I just want to show the stuff for clear picture. Quote Link to comment https://forums.phpfreaks.com/topic/267698-return-back-on-same-page-after-valid-user-login/#findComment-1373228 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.