session.abandon throws 'invalid view state' exception in netscape
From: jhill (anonymous_at_discussions.microsoft.com)
Date: 05/14/04
- Next message: Alex Maghen: ""Editing" the Url QueryString Parameters"
- Previous message: Alan Z. Scharf: "Re: Reload Page Command"
- Next in thread: Cowboy \(Gregory A. Beamer\): "Re: session.abandon throws 'invalid view state' exception in netscape"
- Reply: Cowboy \(Gregory A. Beamer\): "Re: session.abandon throws 'invalid view state' exception in netscape"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 May 2004 13:01:06 -0700
i am trying to allow the user to click log out and redirect to another web page. i have done this two ways.
a server side script in the button that does this:
Session.Abandon()
Response.Redirect("logout.aspx")
logout.aspx simply states "logged out". no other logic.
or, i have tried to have the button do this:
Response.Redirect("logout.aspx")
and on logout.aspx, i simpy have this at the very end of the html:
<% session.abandon %>
OK... now you know what i've tried. this works great in IE (either method). however, in netscape, i get an invalid view state error and the session is still alive. the only way i can kill a session in netscape is to have this in the button:
Session.Abandon()
now... yes, that kills the session, but the problem is the user is still on the same page. i need them redirected to a page that clears the page in the browser. is this at all possible???????
thanks.
- Next message: Alex Maghen: ""Editing" the Url QueryString Parameters"
- Previous message: Alan Z. Scharf: "Re: Reload Page Command"
- Next in thread: Cowboy \(Gregory A. Beamer\): "Re: session.abandon throws 'invalid view state' exception in netscape"
- Reply: Cowboy \(Gregory A. Beamer\): "Re: session.abandon throws 'invalid view state' exception in netscape"
- Messages sorted by: [ date ] [ thread ]