Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2006, 05:45 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default session.abandon()

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


 
Old December 11th, 2006, 05:54 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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
 
Old December 11th, 2006, 05:58 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old December 11th, 2006, 06:03 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

.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
 
Old December 11th, 2006, 06:10 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no the thanks page dont contain any code, it has only a message






Similar Threads
Thread Thread Starter Forum Replies Last Post
Logout and Session.Abandon() fskilnik Classic ASP Basics 6 October 25th, 2005 05:17 PM
Session.Abandon problem r_ganesh76 General .NET 13 October 4th, 2004 11:20 PM
session.abandon!! cici Classic ASP Professional 1 April 16th, 2004 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.