contra10 Posted March 31, 2009 Share Posted March 31, 2009 I'm trying to attempt to redirect someone from an email to a specific page. the problem is in my header file, if no cookie is set becasue it is a login system, the person gets redirected to the main page. How can i set up a login system where after the person enters their username etc then they can redirected to the page that the email linked them to? Quote Link to comment Share on other sites More sharing options...
DanielHardy Posted March 31, 2009 Share Posted March 31, 2009 find the header(mainage(whatevr the name of the main page is) and change it to the page you want it to go to should be easy Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted March 31, 2009 Share Posted March 31, 2009 if the page you are trying to send them to via a link in an email requires authentication, then they will be redirected every time .. otherwise, just change your header() to what you would like it to be .. or, be a little more specific as to what it is you are attempting to attempt to try. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted March 31, 2009 Share Posted March 31, 2009 1. Check the page that they went to, if they are not logged in, create a session or cookie of the exact url they are at. 2. Redirect them to the login page. 3. Place the url from the cookie or session in a hidden field. 4. When the user logs in, check what is in the hidden field, if it is a url, direct them there otherwise direct them to the default page. 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.