j.smith1981 Posted November 1, 2011 Share Posted November 1, 2011 I am interested on how if I say got a user to login to a site. Say I wanted them to go back to the page they where on when they logged in, how would I go about doing this or some other base action? I mean I would prefer to get some kind of generalised tutorial so I can really learn how to do this, any feedback again is appreciated, Jeremy. Link to comment https://forums.phpfreaks.com/topic/250242-basic-on-user-login-referals/ Share on other sites More sharing options...
poddys Posted November 2, 2011 Share Posted November 2, 2011 They presumably click on a link to "Login", and as part of that action, the simplest thing is to either define the page url as a Global variable or as a Cookie. You can return to the user to that page (if set) once they have logged in. Link to comment https://forums.phpfreaks.com/topic/250242-basic-on-user-login-referals/#findComment-1284222 Share on other sites More sharing options...
j.smith1981 Posted November 2, 2011 Author Share Posted November 2, 2011 Oh of course! I mean you'd set the cookie or session variable to page x, then when their logging in or it will even be there just not actioned if they fail to login, if they do succeed then you take them back to that page. Brilliant, don't see how I did not work that one out for myself really but never the less thank you again, Jeremy Link to comment https://forums.phpfreaks.com/topic/250242-basic-on-user-login-referals/#findComment-1284225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.