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

Session Timeouts...

3 Answers 139 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Stacy
Top achievements
Rank 1
Stacy asked on 18 Oct 2011, 03:45 PM
My web.config timeout is set to 1 minute for testing.  I log in and view a page with a radgrid. The grid loads normally.
I wait for 1 minute.  Then I click on a button on the radgrid and i get an error.

I want to be able to redirect users to my login.aspx page.

In an earlier thread you mention putting this in Login.aspx "Page_Init" function. 

"Response.RedirectLocation = Request.Url.ToString();"

But no redirect occurs.  Any ideas?

3 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 20 Oct 2011, 01:28 PM
Hello Stacy,

Have you tried setting you Login timeout to the same amount of time as you Session timeout? I think that should do the trick.
0
Stacy
Top achievements
Rank 1
answered on 20 Oct 2011, 11:04 PM
Why would setting a login timeout have anything to do with this issue?  Im logged in, using a grid, want to redirect to login page when session times out but i get an error on the grid when doing a request.
0
Iana Tsolova
Telerik team
answered on 25 Oct 2011, 12:34 PM
Hello Stacy,

Are you trying to manually redirect to the login page? You can try handling the error through the ScriptManager and see if you can call your code for redirecting to the login page there.

Best wishes,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Ajax
Asked by
Stacy
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Stacy
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or