Consider this script:
home.asp:
Session("name")="Doug"
Session.Abandon
Response.Write(Session("name"))
The output here will be Doug even though you have called Session.Abandon the reason is that the session object is NOT deleted until ALL of the scripts in the current page have been executed. So, that means that you can call any session values on the page you call Session.Abandon but, after that, the session variables are then gone.
So given the above script when I navigate to this script:
Page2
<%
Response.Write(Session("name"))
%>
My output will be blank.
My guess is that on home.asp you are recreating a session after you have called session.abandon what I would suggest is that your href link to a page called logout.asp and the script of that page shoudl be:
<%
Session.Abandon()
Response.Redirect("home.asp")
%>
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========