ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to handle Session Timeout on awe popup
Title:
B
I
{code}
?
Hello I'm struggling with following problem. I have a class which checks if user is still logged on and if session timeout occured. This class provides an attribute which I use as annotation, that sits on top of my controller and if login/session condition is not fullfilled it makes a redirection to login page on any call to controller methods. It works the way I want. Only when I open an awe-popup, my login page is shown within the popup window. Any Idea how to avoid this?
Save Changes
Cancel
TT Tom
asked at 23 Oct 2017
Answers
B
I
{code}
?
you could do something like this (it might be different in an attribute): if (Request.IsAjaxRequest()) { return Content("<script>window.location = '" + Url.Action("SignIn", "Account") + "'</script>"); }
Save Changes
Cancel
Omu
answered at 23 Oct 2017
OK, thanks, got an idea :)
at 23 Oct 2017
TT Tom
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK