Simple Session Problem

Results 1 to 4 of 4

Thread: Simple Session Problem

  1. #1
    Adnan Shahid Bhutta Guest

    Default Simple Session Problem

    I have writen this code<BR><BR>Response.Write("The user is " &session.SessionID & "<BR>")<BR> session.Abandon()<BR> Response.Write("The user is " & session.SessionID & "<BR>")<BR><BR>This should give two distinct session nubers but it does not<BR>any idea why<BR>please reply to <BR><BR>thanks a lot

  2. #2
    Sonali B. Guest

    Default RE: Simple Session Problem

    After &#039session.abandon&#039 method is called,<BR>server treats you as a new user . <BR>unless and until you call a new page , session variables and values are retained .<BR><BR>after calling a &#039session.abandon&#039 ...<BR>write a code to jump to a new page and then check seesionId value.<BR><BR>Abandon method does not take effect until the current page is completely processed.<BR><BR>good luck...<BR><BR>Sonali B.

  3. #3
    Simhan Guest

    Default RE: Simple Session Problem

    Alright! Session.abandon does abandon the current session. But, when will a new session be created? Only when the browser sends another request to the server right? or some other is requested from the server and not the same page.<BR><BR>Thanks<BR><BR>I completely agree with Sonali

  4. #4
    Join Date
    Dec 1969

    Default Session abandon - When...

    Session.abandon can be called from anywhere in a page but will only be effective when that page completes it&#039s processing.<BR><BR>It&#039s a "when this page is done, so is this session" thing

Posting Permissions

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