NYCPHP Meetup

NYPHP.org

[nycphp-talk] Returning users from whiniest they came

bzcoder bzcoder at bzcode.com
Wed Jul 9 15:07:10 EDT 2008


PaulCheung wrote:
> Could somebody point me in the right direction or make any suggestion??
>
> On Exiting the "my" application, I want to return the user back to the 
> original "jump-off point" just before they entered the application, 
> wherever that may have been. 

The best solution is for the page they came from to pass the return 
point to you in some manner(cookie, get or post variable, session 
variable, etc).  That way you have control over some things(like not 
returning them to a page that requires some posted variables to load 
properly).

Failling that, referrer works, or use some javascript and go "back" the 
correct number of pages in the history.



More information about the talk mailing list