Session timeout with Cute WebMessenger

Last post 06-22-2006, 1:19 PM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  06-15-2006, 2:21 AM 20175

    Session timeout with Cute WebMessenger

    Hello All,

    I am building a site and one of the requirements is to have sessions that expire (because of some security reasons).
    Recently I've downloaded the Cute Integration package and successfully! integrated the Cute WebMessenger - everything is working fine.
    However, I noticed that the session now longer expires because the CuteClient is sending constantly some requests to the IIS (I think with AJAX).

    What is your advise to have the Cute WM integrated with my current login system and also to have session that expires?

    greetings
    Diman

  •  06-19-2006, 3:38 PM 20294 in reply to 20175

    Re: Session timeout with Cute WebMessenger

    Diman,
     
    >>I noticed that the session now longer expires because the CuteClient is sending constantly some requests to the IIS (I think with AJAX).
     
    Do you really need to timeout the session while the client is still chatting and let the use login again?? I am confused.
     
     
     

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-20-2006, 2:12 AM 20322 in reply to 20294

    Re: Session timeout with Cute WebMessenger

    Hello Adam,

    As the application we are developing is working with more sensitive information (not public) a requirement from the customer is to have sessions that expire. Sure while chating, the session should not expire. But if the chat window is closed and only the BuddyList (list of contacts, status dropdown, menu, etc...) is visible I would like to have the session expiring.

    Just for your information, we've added the Cute WebMessenger main BuddyList in a frame and now it is part of the main user interface (it is not opened in a separate window).

    greetings
    Diman

  •  06-22-2006, 1:19 PM 20421 in reply to 20322

    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 as RSS news feed in XML