error on session timeout

Last post 12-20-2010, 10:08 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  12-20-2010, 11:32 AM 65469

    error on session timeout

    Hi,
     
    We are using cutesoft AJAX uploader. The uplodaer is implemented using HTTP Modules. Everything works well. The problem is that if the user clicks the upload button after being idle for long (means after session time out) the control throws and error. 
    I just want to know the work around to bypass this issue. 
    Note:- We are just using one web.config and two master pages (one for login and error pages and one for all other pages which are accessed after authentication). We have written the code to check the session timeout in oninit of the master page which is used by all the pages except (Login and Error pages). 
    I have given this information as based on your solution the session timeout framework my also change.
    Also let me know how to supress the error in other cases as the error shows the page code which i do not want though it is available via view source. 
     
    Thanks in advance.
    Regards,
    Anuj Yadav 
  •  12-20-2010, 10:08 PM 65479 in reply to 65469

    Re: error on session timeout

    Anuj Yadav,
     
    you can use javascript to make the browser access your sever every a few minutes.
     
    for example
     
     
    function ActivateSession()
    {
        document.body.style.backgroundImage="url(justablankpage.aspx?_temp"+new Date()+")"
    }
    setInterval(ActivateSession,60000)
     
    Regards,
    Terry
     
View as RSS news feed in XML