Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

asp.net and logout problem & loginstatus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 03 Apr 2008 15:38 GMT
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?
Cowboy (Gregory A. Beamer) - 03 Apr 2008 16:57 GMT
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.

Signature

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!

*************************************************
> hey
>
[quoted text clipped - 16 lines]
>
> any suggestions?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.