Last post Nov 22, 2020 05:31 PM by mgebhard
Nov 22, 2020 04:21 PMemail@example.com|LINK
I have a web application. After filling out the first page, users are redirected to another page. There are around 6-7 pages like this. Sometimes the users Bookmark the 5th or 6th page. I want to redirect the user to the first page if any other pages are
bookmarked. One way, I can do this if the form field on the first page is empty then I can check that if it is empty then go to first page, but I was looking for a simpler way if there is any. I have several form field one each page.
Any help will be appreciated.
Nov 22, 2020 05:31 PM|mgebhard|LINK
It's not possible to determine the request came from the user opening a bookmark.
Set a session cookie that expires when the browser is closed. If the cookie does not exist then redirect the user to the first page. Also set a sliding cookie expiration to handle if the use does not close the browser.
Cookie Reference documentation.