session id and is session expired equal values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DiaZZ Ans
    New Member
    • Oct 2010
    • 1

    session id and is session expired equal values

    If I run the code, the ISSessionExpire d = sessionid then the array list gets printed. I am facing this problem all of a sudden.

    Code:
    System.Web.SessionState.HttpSessionState curSession = HttpContext.Current.Session;
    if (curSession.IsNewSession)
    {
      if (Utils.SessionHandler.IsSessionExpired == curSession.SessionID)
      {
       Error oError = new Error(true);
       Utils.SessionHandler.AES_Error = oError;
       string strVal = "{\"array_list\":{\"list\":[{\"Source\":'SessionExpired'}]}}";   Response.Write(strVal);
      }


    thanks
    Last edited by Frinavale; Oct 6 '10, 03:48 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags, moved the question above the code, and added appropriate capitalization and punctuation to the question.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I cannot understand what you are trying to accomplish in your code.

    Where are you setting Utils.SessionHa ndler.IsSession Expired?

    Are you setting it before this code...perhaps you are setting it to curSession.Sess ionID somewhere before this if-statement is executed?

    -Frinny

    Comment

    Working...