This is a migrated thread and some comments may be shown as answers.

Detect ASP.Net Session Timeout 302 Redirect During Node Expand

1 Answer 95 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 10 Aug 2010, 12:39 AM
I have a RadTreeView with Ajax enabled and node ExpandMode set to ServerSideCallBack.

User has the tree displayed and leaves their machine idle. ASP.Net session timeout occurs, but this is not apparent to the user. At some point following timeout, the user clicks on a tree node to expand it. The Ajax "loading" gif appears and they are stuck there with the gif spinning and no response, no redirect, etc.

Fiddler analysis shows a 302 redirect coming back to the browser from the server, but the RadTreeView does not detect it.

So, how do I detect a session timeout / 302 redirect when a RadTreeView node is clicked and the tree attempts to expand the node through server side callback?

If helpful, here's Fiddler capture of the response sent back to the web form that the RadTreeView does not honor:

HTTP/1.1 302 Found
Server: ASP.NET Development Server/9.0.0.0
Date: Mon, 09 Aug 2010 23:12:36 GMT
X-AspNet-Version: 2.0.50727
Location: /login.aspx?ReturnUrl=%2fAdmin%2fBillingGroupAdministration.aspx
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 191
Connection: Close

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2flogin.aspx%3fReturnUrl%3d%252fAdmin%252fBillingGroupAdministration.aspx">here</a>.</h2>
</body></html>

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 11 Aug 2010, 04:30 PM
Hi Kevin Broughton,

We just published a KB article describing the cause of this issue and suggesting a solution. Please see it here.

Regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Scott
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or