asp.net and logout problem & loginstatus


J

Jeff

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?
 
Ad

Advertisements

C

Cowboy \(Gregory A. Beamer\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top