i was just wondering, how do i completely terminate a asp.net session to effectivly create a logout.aspx page??
Thanks, Justin
i was just wondering, how do i completely terminate a asp.net session to effectivly create a logout.aspx page??
Thanks, Justin
Hi
You can give "session.abandon()".you can give in the onclick event of the LOGOUT button from the Server side page also.
I think it would help for you.
Thanks !
Thiyagarajan.N
From where? You could even run the iisreset command.
mend is that a joke or am I missing something?Originally Posted by mendhak
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!! * If you found a post useful then please Rate it!* DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!
Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
Start > Run > IISReset => clears session variables.
Cleared session variables => Get the login page.
ok yeah i get that.. but since he said he was trying to make a logout.aspx page, I assume this is something he wants for a production app, like when a user hits a logout link on the site.
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!! * If you found a post useful then please Rate it!* DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!
Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
I assumed too much. I sometimes have to use iisreset, so... never mind.
i just thought there was some weird trick I didn't know about![]()
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!! * If you found a post useful then please Rate it!* DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!
Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
Session.Clear() works, but in my app I want to save some session variables while erasing others so I erase the login values directly:
Session("Userid") = Nothing
Like that..
Out of interest, what session vars would you save?
Woka
My .NET Tutorials:
Silverlight Enabled WebPart in WSS
My VB.NET Code Examples:
Create IIS Virtual Directory Validate Login Against Active Directory Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET
My ASP.NET Code Examples:
Login To Website (Forms Authentication) Login To Website (Custom Authentication)
My VB6 Code Projects:
Multithreading In VB6 Custom Tooltips Multi Language Support Item Selector Control Annimated Systray Icon Simple Effective Graph Control Download From Web LiveUpdate, download application updates from the web automatically Systray Notification Messages Skin A Form API Timer Badger Messenger, an MSN clone that uses the MSN Network Wokawidgets VB6 Component Suite
well, thanks for the feedback guys :P and yer the session.clear() is what i needed. Thanks