after signing in return back to oragial page!

Hello,

I am trying to get my script to do:

you on a page, you click sign-in, then once signed in be returned back to the page you came from before you pressed the sign-in link?

Any ideas on how to do this?

Thanks ahead of time!
Christopher

so far this is what I did

I used the $_SERVER[‘HTTP_REFERER’] in the sign out and I used this in the sign in form and then grabbed it in the processing script

any other ideas to do this better?

Sincerely,
Christopher

If it is the same page every signin action should return to, you can hardcode the signin form to return to that very page, and have the signing in be processed on that page. If you want a sub-page telling the user they succesfully signed in, you could use a delayed redirect to return to that page.

Sponsor our Newsletter | Privacy Policy | Terms of Service