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. Link to comment https://forums.phpfreaks.com/topic/115180-solved-redirection/ 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'); Link to comment https://forums.phpfreaks.com/topic/115180-solved-redirection/#findComment-592255 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? Link to comment https://forums.phpfreaks.com/topic/115180-solved-redirection/#findComment-592269 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 Link to comment https://forums.phpfreaks.com/topic/115180-solved-redirection/#findComment-592275 Share on other sites More sharing options...
jrws Posted July 17, 2008 Author Share Posted July 17, 2008 Yes thanks for this Link to comment https://forums.phpfreaks.com/topic/115180-solved-redirection/#findComment-592401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.