Welcome Guest Search | Active Topics | Sign In | Register

Session Timeout Issue Options
Will - ILCU
Posted: Tuesday, December 30, 2008 11:14:55 AM
Rank: Newbie
Groups: Member

Joined: 12/30/2008
Posts: 2
Hi,

I am using session variables and our IIS session state is set to 20 minutes. So after 20 minutes of inactivity we have the application time out.

It should refresh every time the UI requests info from the server. This never seems to happen. When ever they open the ASP.Net page while working within it, 20 minutes goes by and the application expires.

Could this be something with AJAX / callback panel?

Has anyone else experienced any issues with applications timing out?

Thank you!
eo_support
Posted: Tuesday, December 30, 2008 11:51:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,089
Hi,

We are not sure what can cause this, but I do not believe this has anything to do with AJAX or CallbackPanel. Both should keep session alive.

Thanks
Philipp Jenni
Posted: Monday, January 5, 2009 1:22:54 AM
Rank: Advanced Member
Groups: Member

Joined: 6/9/2007
Posts: 98
Hi Will,

I had the same problem and i found a solution for this. Use an eo:Callback Control and execute method on the cliendside to execute an method asynchron on the server side. This resets the session timeout on the server side and the session never expired.

Here is a simple example:

Use this control in your page
Code: HTML/ASPX
<eo:Callback ID="callbackTimer" runat="server" OnExecute="callbackTimer_Execute" ClientSideAfterExecute="callback_after_execute_handler" ClientSideOnLoad="callback_on_load">
</eo:Callback>


Add this javascript code on top of your aspx page
Code: JavaScript
<'''script type="text/javascript"cmt:fb49f641-6eaf-49ee-80ab-eb306a08e0b9--
    function callback_after_execute_handler(callback, output, extraData) {
        setTimeout("eo_GetObject('callbackTimer').execute();", 300000);
    }

    function callback_on_load(e, info) {
        setTimeout("eo_GetObject('callbackTimer').execute();", 300000);
    }
</script>

Remove the 3 ' in the <scri...="text/javascript"> line!

Add this method in your cs file. The method can be emtpy.
Code: C#
protected void callbackTimer_Execute(object sender, EO.Web.CallbackEventArgs e)
    {
    }


I hope i can help you.
Will - ILCU
Posted: Thursday, January 8, 2009 8:45:23 AM
Rank: Newbie
Groups: Member

Joined: 12/30/2008
Posts: 2
Thank you Philipp, I appreciate you taking the time to address our issue!

We decided to break out all of the tab functionality and place in separate pages.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.