Session in Global.asax..plz help RRS feed

  • Question

  • User-1604169926 posted

    Hello everyone, plz tell me how to retrive specific session in global.asax file..

    actually i am making chat application and i want to change online/offline status of particular user..

    whenever user login in my site, a session named "SUsername" created..now using this session i want to set online/offline status in my user database for that particular user..So i need to retrieve session in session_start and session_end event in global.asax..but when i try to retrieve it , I am getting NullReferenceException(Object reference not set to an instance of an object)

    Please help me how to do this..or if this is not possible then tell me other way how to perform the same function..my condition is that whenever user closes its window(without logging out), its status should be set to offline.


    Monday, July 25, 2011 11:19 AM


All replies