|
-
Feb 15th, 2006, 06:05 PM
#1
Thread Starter
Registered User
how to kill an asp.net session for logout page??
i was just wondering, how do i completely terminate a asp.net session to effectivly create a logout.aspx page??
Thanks, Justin
-
Feb 15th, 2006, 06:09 PM
#2
Re: how to kill an asp.net session for logout page??
-
Feb 15th, 2006, 10:15 PM
#3
Junior Member
Re: how to kill an asp.net session for logout page??
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
-
Feb 17th, 2006, 10:02 AM
#4
Re: how to kill an asp.net session for logout page??
From where? You could even run the iisreset command.
-
Feb 17th, 2006, 10:04 AM
#5
Re: how to kill an asp.net session for logout page??
 Originally Posted by mendhak
From where? You could even run the iisreset command.
mend is that a joke or am I missing something?
-
Feb 17th, 2006, 10:08 AM
#6
Re: how to kill an asp.net session for logout page??
Start > Run > IISReset => clears session variables.
Cleared session variables => Get the login page.
-
Feb 17th, 2006, 10:10 AM
#7
Re: how to kill an asp.net session for logout 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.
-
Feb 17th, 2006, 10:13 AM
#8
Re: how to kill an asp.net session for logout page??
I assumed too much. I sometimes have to use iisreset, so... never mind.
-
Feb 17th, 2006, 10:16 AM
#9
Re: how to kill an asp.net session for logout page??
i just thought there was some weird trick I didn't know about
-
Feb 17th, 2006, 05:55 PM
#10
Fanatic Member
Re: how to kill an asp.net session for logout page??
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..
-
Feb 19th, 2006, 03:22 AM
#11
Re: how to kill an asp.net session for logout page??
Out of interest, what session vars would you save?
Woka
-
Feb 20th, 2006, 12:16 AM
#12
Thread Starter
Registered User
Re: how to kill an asp.net session for logout page??
well, thanks for the feedback guys :P and yer the session.clear() is what i needed. Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|