Forum Moderators: coopster

Message Too Old, No Replies

Page Expiry Necessitated To Prevent Errors in cookie values

I Want to Block the Return to an Unrefreshed Page

         

DZur

4:11 pm on Apr 11, 2008 (gmt 0)

10+ Year Member



Hi,
the browser's history buffer has been giving me a rough time.

I Have 3 pages.

The first page is a login page which submits a password to the a.s.p page.

The second page is an a.s.p page which checks the validity of the user p.w.

If the password is o.k. A cookie with value 'o.k.'
is set on the client side and redirects to the main page:
I.e. Page no. 3.

Now in the main page:
if the user decides to go back to the old pages via the browser's history buffer (e.g. Via the backspace, in fact much to my discomfort there are many ways to achieve that...)
I run into a terrible! Mess because the old unrefreshed browser pages still 'think' the cookie value has not been set.

How does one overcome such an ordeal?
In fact,
I have seen on a good number of occassions web pages that read on an attempt to return to them:
"page no longer available".
Am I moving in the right direction, and if so please guide me through
the additional necessary steps to reach a reasonable solution.
Thank you very very much guys,
doron.

[edited by: jatar_k at 6:12 pm (utc) on April 11, 2008]
[edit reason] fixed case [/edit]

coopster

11:33 pm on Apr 17, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Set the cookie on page 1 instead.