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 / March 2008

Tip: Looking for answers? Try searching our database.

when page timeout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 27 Mar 2008 14:38 GMT
hey all,
what do i have to do to make it where if my page is timed out to
automatically go back to login screen?

thanks,
rodchar
Peter Bromberg [C# MVP] - 27 Mar 2008 18:42 GMT
If a page times out because you have some long-running process going on,
there's not much you can do at that point. Your user would still be logged
in, why do you need to take them back to the login page?  Better to refactor
in such a way that you run the process on a background thread rather than
tying up page processing.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> hey all,
> what do i have to do to make it where if my page is timed out to
> automatically go back to login screen?
>
> thanks,
> rodchar
rodchar - 27 Mar 2008 19:55 GMT
well i mean if a user has left their desk and has no activity.

> If a page times out because you have some long-running process going on,
> there's not much you can do at that point. Your user would still be logged
[quoted text clipped - 12 lines]
> > thanks,
> > rodchar
Peter Bromberg [C# MVP] - 27 Mar 2008 21:02 GMT
OK, well if a user has left their desk and their Forms Authentication ticket
(cookie) has expired, then the next time they try to do something, they
should automatically be redirected to the login page since they are no longer
authenticated. All this stuff is set up in your web.config file.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> well i mean if a user has left their desk and has no activity.
>
[quoted text clipped - 14 lines]
> > > thanks,
> > > rodchar
rodchar - 28 Mar 2008 20:17 GMT
thank you for the tips,
rod.

> OK, well if a user has left their desk and their Forms Authentication ticket
> (cookie) has expired, then the next time they try to do something, they
[quoted text clipped - 23 lines]
> > > > thanks,
> > > > rodchar

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.