|
Subject:
|
session.abandon()
|
|
Posted By:
|
sarah lee
|
Post Date:
|
12/11/2006 4:45:29 PM
|
hi
in my application, i want to delete all the informations after a user has signed out. i am displayed almost all the informatiosn with the help of session variables. where do i write the session.abandon() to clear all the data. is it in the clcik event of signout button or where?
can anyone please help me thanks
|
|
Reply By:
|
dparsons
|
Reply Date:
|
12/11/2006 4:54:32 PM
|
Yes place it in the logout button's click event.
------------------------- I will only tell you how to do it, not do it for you. Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|
|
Reply By:
|
sarah lee
|
Reply Date:
|
12/11/2006 4:58:55 PM
|
i wrote like
Private Sub lbtnsignout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbtnsignout.Click
Session.Abandon() FormsAuthentication.SignOut() Response.Redirect("thanks.aspx")
End Sub
but the informations are still there
|
|
Reply By:
|
dparsons
|
Reply Date:
|
12/11/2006 5:03:40 PM
|
.SignOut destroys the Forms Authentication Ticket and has nothing to do with your session variables. In so far as Session.Abandon(), this cancels the entire session on the server. Are you reassigning session values on thanks.aspx?
------------------------- I will only tell you how to do it, not do it for you. Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|
|
Reply By:
|
sarah lee
|
Reply Date:
|
12/11/2006 5:10:05 PM
|
no the thanks page dont contain any code, it has only a message
|