session id

Results 1 to 2 of 2

Thread: session id

  1. #1
    joey Guest

    Default session id

    why is it that after you call &#039session.abandon&#039 in an asp page you can still access the session&#039s variables. each page in the application has the following 2 lines to prevent caching<BR><BR>Response.AddHeader "Pragma", "no-cache<BR>Response.AddHeader "cache-control", "no-store"<BR><BR>

  2. #2
    geeoff Guest

    Default RE: session id

    The Session vars are in scope until the last script element is processed regardless of where you have Session.Abandon..... i.e.<BR><BR>&#060;%<BR><BR>Session("joey") = "hello"<BR>Session.Abandon<BR>Response.Write Session("joey")<BR><BR>%&#062;<BR><BR>This would print hello. However if you redirect to another page and try to Response.Write Session("joey") you will get nothing.. I think this behavior is by "design" and I don&#039t think the cache options will affect it.<BR><BR>HTH,<BR><BR>geeoff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts