jrws Posted July 17, 2008 Share Posted July 17, 2008 What I am wondering is how people redirect users to pages I will give an example to clarify: User enters a site where some pages are only accessible by being registered/logged in and other pages are not. User enters a page where login is required and logs in. He is then able to continue looking at the page instead of being redirected to the main page. Obviously this is accomplished by a header, but what does the header contain? Please and thank you. Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted July 17, 2008 Share Posted July 17, 2008 Suppose that users is logging from index.php and will be redirected to login.php header('location:login.php'); Quote Link to comment Share on other sites More sharing options...
jrws Posted July 17, 2008 Author Share Posted July 17, 2008 Not quite what I mean. This is what I mean Articles.php require login, user presses on link to go to articles.php and since they are not logged in go to login.php (this would use sessions). User would then login/signup and then be redirected to the page they where previously on. Does this make it move understandable? Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted July 17, 2008 Share Posted July 17, 2008 I hope i am right to get you,read this article will guide you,howto do it. http://www.karakas-online.de/EN-Book/redirect-users-to-login-and-back.html Quote Link to comment Share on other sites More sharing options...
jrws Posted July 17, 2008 Author Share Posted July 17, 2008 Yes thanks for this Quote Link to comment 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.