Session will be interfered by another application's thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JimWu
    New Member
    • Aug 2007
    • 14

    Session will be interfered by another application's thread

    Hi, I have a problem about session and application.

    The situation describes as follows.

    I have two web site A and B. They have different AppDomain.

    First of all, I use session to record some info. in A.

    While I invoke the application method "Applicaion.Rem oveAll()" inside a thread, the session of web site A will be expired.
    So web site A could not access to any value of session.

    But if web site B do not use thread to invoke this thread, the session of web site B would not be affected.

    I dont know why it cause session expire. So far as I know, since A and B is different AppDomain, why session would be interfered by another application using the thread.

    Thanks any kindly answer.

    Jim.
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Sounds like a question for an IIS expert...

    Jared

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      Originally posted by JimWu
      So far as I know, since A and B is different AppDomain, why session would be interfered by another application using the thread.
      There is a lot of imprecision here. If there is a child/parent relationship, eg virtual domain, it may have this effect. They may share the same application pool. Seems to me you have discovered a relationship and now you need to discover what it is. HTH.

      Comment

      • JimWu
        New Member
        • Aug 2007
        • 14

        #4
        Originally posted by kenobewan
        There is a lot of imprecision here. If there is a child/parent relationship, eg virtual domain, it may have this effect. They may share the same application pool. Seems to me you have discovered a relationship and now you need to discover what it is. HTH.
        I think they are have application pools.

        If my illustratation is wrong, please correct my opinion.

        A and B is different web application and they use different AppDomain.

        Then, there is different virtual domain for them, eg., A is "http://10.2.2.55/A/index.aspx" and B is "http://10.2.2.55/B/Clear.aspx".

        While web site A performs first in the browser, the state of session is alive.

        But while I performs web site B using thread to clear state value of the application in another browser, the state value of session in A would be also cleaned.

        I havnt figured out this problem so far.

        I do not know either my concept wrong or having solution to solve this problem.

        If someone knows, thanks for your kindly answer.

        Jim.

        Comment

        Working...