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 / December 2007

Tip: Looking for answers? Try searching our database.

Login Control's "Remember me"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amir Tohidi - 18 Dec 2007 13:17 GMT
Hello

The site I am working on redirects the user to a "session timed out" page
when:

- the user's session has expired  AND
- the user action results in a postback to the server

I then need to redirect the user to either the Login page or the Welcome
page depending on whether the user logged in and checked the Remember Me
check box.

How can I determine whether the user checked the Remember Me check box?
Whilst the session is valid, I can use the cookie key the control generates.
However, upon session expiry, even the cookie's value seems to be reset!

Any ideas please?

Thanks
Cowboy (Gregory A. Beamer) - 18 Dec 2007 17:22 GMT
It is probably better to add a timeout meta tag to the page with about the
same timeframe as website timeout, that automatically sends them to a
"session timed out" page, which also kills their session. If you do this,
make sure they cannot hit the back button from this page, however, or they
will try to be sneaky and go back to the form, which will not work.

If you go this route, have a link to logon page. If they have "remember me",
you can authenticate them on that page and automatically kick them out to
the default page, or similar.

If you really want a programming task, there are ways of setting up an error
handler to grab all elements on the page. Temp store them in some form of
cache (session?) and boot "remember me" users back to the page. Understand,
however, that this will require extensive programming. I would not think it
would be worth it in most instances.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************

| Think outside the box!

*************************************************
> Hello
>
[quoted text clipped - 16 lines]
>
> Thanks

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.