J
JJ_377
In a "Save and Quit" button on my web app form (aspx), I have the
following code that is supposed to clear a session variable (an user
id) and redirect to a logon page:
Session.Clear()
Session.Abandon()
Response.Redirect("ApplicantLogon.aspx")
1. The redirect occurs, but the session variable does not clear.
2. A related issue that ****worries me greatly**** is that once
redirected to the logon page, selecting the browser's back button,
redirects to the web form on which the user has entered data!
This latter page has code in the onload event that looks for the
session variable assignment, and if it doesn't find it, it is supposed
to redirect the user to the logon page...however, since I didn't suceed
in clearing the variable using the session methods, above, this does
not work...
Can someone educate me?
Thank you.
J.
following code that is supposed to clear a session variable (an user
id) and redirect to a logon page:
Session.Clear()
Session.Abandon()
Response.Redirect("ApplicantLogon.aspx")
1. The redirect occurs, but the session variable does not clear.
2. A related issue that ****worries me greatly**** is that once
redirected to the logon page, selecting the browser's back button,
redirects to the web form on which the user has entered data!
This latter page has code in the onload event that looks for the
session variable assignment, and if it doesn't find it, it is supposed
to redirect the user to the logon page...however, since I didn't suceed
in clearing the variable using the session methods, above, this does
not work...
Can someone educate me?
Thank you.
J.