Re: Session timeout with Cute WebMessenger

  •  06-22-2006, 1:19 PM

    Re: Session timeout with Cute WebMessenger

    Diman:
     
    The CuteChat send request to server every second. It make a request to asp.net , so the asp.net will renew the session timeout. So , the session would not timeout when the main form is connected.
     
    I think I can give you a advise to implement your demand by another way .
     
    You can control the session timeout by your self.
    You need to write code in global.asax Application_PreRequestHandlerExecute, check the Request.UrlReferrer .
    If the UrlReferrer is your frame's url , that means the request is by the BuddyList .
     
    OK . when the referrer is not from the BoddyList , you can save Session["LastTime"]=DateTime.Now;
     
    If the referrer is from the BoddyList , you can compare the Session["LastTime"]. If the LastTime is
    timeout , use Session.Abandon() to force the session expires.
     
    Hope this helps.
     
    Regards , Terry .
     
View Complete Thread