Session timeout problem c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mylog
    New Member
    • Sep 2007
    • 20

    #1

    Session timeout problem c#

    I have a ASP.NET C# web application and I have used session in it. When one user logs in, the session starts and when logs out the session ends. This is working perfectly fine for a single user. But when two or more users logs in, and one of the users logs out, the session ends for all the users which I do no want. What I need is when a particular user logs out the session must end for that user only no all the users. Is there a solution to this problem? Please, help needed urgently? Does anyone has a solution to this?
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by mylog
    I have a ASP.NET C# web application and I have used session in it. When one user logs in, the session starts and when logs out the session ends. This is working perfectly fine for a single user. But when two or more users logs in, and one of the users logs out, the session ends for all the users which I do no want. What I need is when a particular user logs out the session must end for that user only no all the users. Is there a solution to this problem? Please, help needed urgently? Does anyone has a solution to this?
    it is sounding a bit strange...becau se..

    A new session is created once for each new browser that hits your ASP.NET Web site. If a user stops hitting your Web site, his Session will time out after 20 minutes of inactivity, by default.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Are you using the built in Session object? Are you tie-ing it to an sql database?
      What do you use to "log out" the user? Session.Abandon () ?

      Are you in a debug mode when you were testing this? Were you testing multiple windows on the same computer?

      Comment

      • mylog
        New Member
        • Sep 2007
        • 20

        #4
        thanks for the reviewing my thread but I have already solved the problem. the problem with it was i was using the Directory.Delet e() command at the logout button which killed all the current sessions. once i found that Directory.Delet e() kills all the current session I was able to solve the problem. thanks anyway.

        now the problem i am facing is that i want to update a doc file that is situated at the server side without having it to be downloaded at the client side. Got any ideas?

        Comment

        Working...