Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
154867 Points
19862 Posts
Moderator
MVP
Sep 15, 2011 05:57 PM|LINK
jmbishop When I did this with a similar project in Cold Fusion I had to use a javascript to achieve this but I wanted to see if there was a .NET way.
<script type="text/javascript"> window.setTimeout("Redirect()", @Session.Timeout * 60000); function Redirect(){ location.href = 'Default'; } </script>
Mikesdotnett...
All-Star
154867 Points
19862 Posts
Moderator
MVP
Re: Redirecting user to login when session expires
Sep 15, 2011 05:57 PM|LINK
<script type="text/javascript"> window.setTimeout("Redirect()", @Session.Timeout * 60000); function Redirect(){ location.href = 'Default'; } </script>Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter