asp.net and logout problem & loginstatus
hey
asp.net 3.5
I'm creating a webportal where people can login...
when logout the user is presented with webpage specified in web.config:
<authentication mode="Forms">
<forms cookieless="AutoDetect" loginUrl="~/Default.aspx" />
</authentication>
The problem is that if a user is logged in for too long, when he logout he
isn't redirected to the login page. Instead he just get logged out, but the
user continue to on the same page as he used when being logged in...
this is the loginstatus, users click on to logout:
<asp:LoginStatus ID="LoginStatus1" LogoutText="Logg ut"
LogoutAction="Redirect" CssClass="left_column" runat="server" />
any suggestions?
Re: asp.net and logout problem & loginstatus
I am fond of adding a redirect to logout page type of script in my code that
will auto log out people who overstay their welcome (ie, let their session
time out). In conjunction, a "you cannot use the back button" script works
well. It requires a bit of "forced" retraining to avoid that button,
however.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"Jeff" <it_consultant1 [at] hotmail.com.NOSPAM> wrote in message
news:eWtJxhZlIHA.696 [at] TK2MSFTNGP05.phx.gbl...
> hey
>
> asp.net 3.5
>
> I'm creating a webportal where people can login...
>
> when logout the user is presented with webpage specified in web.config:
> <authentication mode="Forms">
> <forms cookieless="AutoDetect" loginUrl="~/Default.aspx" />
> </authentication>
>
> The problem is that if a user is logged in for too long, when he logout he
> isn't redirected to the login page. Instead he just get logged out, but
> the user continue to on the same page as he used when being logged in...
>
> this is the loginstatus, users click on to logout:
> <asp:LoginStatus ID="LoginStatus1" LogoutText="Logg ut"
> LogoutAction="Redirect" CssClass="left_column" runat="server" />
>
> any suggestions?
>