Click here to Skip to main content
15,920,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to redirect the user to home page once they have reached confirmation page on browser back click, how can I do it?

There are so many sites doing that, so it shouldn't be impossible.

Please help me.

Thanks in advance!
Posted
Updated 20-May-11 5:14am
v2
Comments
[no name] 20-May-11 11:28am    
Please explain "once they have reached confirmation page on browser back click"

1 solution

This[^] is similar question asked in StackOverflow and the answer looks like it should work for you. The gist of that is, set a flag on confirmation page and check for that flag in the previous pages; If that flag is set, redirect the user to home "using header('Location: ...');".
 
Share this answer
 
Comments
cproject123 20-May-11 11:57am    
Yeah, i saw that...

Can u provide and example on how to set it..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900