i was just wondering, how do i completely terminate a asp.net session to effectivly create a logout.aspx page??
Thanks, Justin
Printable View
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?Quote:
Originally Posted by mendhak
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.
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 ;)
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
well, thanks for the feedback guys :P and yer the session.clear() is what i needed. Thanks