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

[Solved] Load on demand Vs session expiration scenario

1 Answer 83 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Raffaele Bafunno
Top achievements
Rank 1
Raffaele Bafunno asked on 03 Sep 2010, 10:36 AM
Hello, I'm facing the following problem.
(VS2010, ASP.NET MVC 2, Telerik MVC Extensions 2010.2.825)
I have a Telerik Tabstrip which tabs are loaded on demand via LoadContentFrom and a set of Controller Actions that returns a partial view for each tabs' content.
Each action must have a "SessionExpiredFilterAttribute" that causes redirection to the login page when session expires, since tab content can't be obtained without a logged user.
Therefore, if the user navigates to the view containing the tabstrip without showing other than the first tab, and then waits until session expires, and finally clicks on the 2nd tab, I'd want the user be automatically redirected to the login page.
Rather, the page remains the same but any tab clicked after the session has expired is filled with the content of login page!
How could this be resolved?

Thanks in advance.

Raf

1 Answer, 1 is accepted

Sort by
0
Raffaele Bafunno
Top achievements
Rank 1
answered on 14 Sep 2010, 09:39 AM
I did myself.
Simply made tab-related action session expired filter return a partial view containing a script that redirects page url to whatever I want.
Maybe it is not so elegant, but it works well.

Bye

Raf

Tags
TabStrip
Asked by
Raffaele Bafunno
Top achievements
Rank 1
Answers by
Raffaele Bafunno
Top achievements
Rank 1
Share this question
or