i have ecommerce website in which we use shopping cart page when any person purchase product and paid the payment then we have thank you page,
home page => products => shopping cart => proceed payment => thank you
now when i click on the browser's back button it is going in proceed payment page and give a errors of session.
i want to go back on home page when i click on browser's back button in thank you page.
proceed payment => thank you => home page.
On the thank you page, set a flag in the session. On previous pages, check this flag. If it is set, send the user to the first page using header('Location: ...');
(don't forget to run exit;
directly after the header line).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.