473,382 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Login Control's "Remember me"

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
Dec 18 '07 #1
1 2316
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.

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

*************************************************
| Think outside the box!
|
*************************************************
"Amir Tohidi" <Am********@discussions.microsoft.comwrote in message
news:C2**********************************@microsof t.com...
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

Dec 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: laredotornado | last post by:
Hello, I have a simple login script. I have the pages login.php login_response.php login_success.php login_failure.php What I want to do is have a checkbox on the login.php page where if...
4
by: gencode | last post by:
In asp.net 2.0 there is a Login Control, but I dont want the option to remember the person, is there anyway to hide the"remember me checkbox" I could not see one, Thanks, Ed,
3
by: Rob R. Ainscough | last post by:
I'm looking for some pointers or sample code I can go thru that implements a "Remember Me" feature for a user's login credentials. I'd don't want to use the "login" control provided by VS 2005 and...
2
by: Dan | last post by:
Hi, I use the logon control for logging into the application. When logging and checking the option "remember me next time" and then closing the browser without to press any logout button which...
2
by: André | last post by:
Hi, When clicking on "remember me" when logging, the user asks for not to have to log in next time he visits the site. Now, on one side, i read it is recommended to logout properly (clicking...
1
by: Abdo Haji-Ali | last post by:
Greetings, I'm using the ASP.NET membership model in my site and everything works perfectly, locally. However when I uploaded my site (To my host which is GoDaddy), and ran it remotely the...
1
by: mohini2000 | last post by:
Hi I want to implement a "Remember Me" feature in a website that basically keeps users logged into the website, even after they've closed the browser so that the next time they come, they won't...
4
by: adam.dmsk | last post by:
Hello, I have Login.aspx page with Login control. I found that "Remember me" checkbox does not work. I found that probably this is not matter of timeout attribute in web.config, becouse when...
1
by: bh | last post by:
I am using a built-in login control on a form, and have set the "DisplayRememberMe" property to false. It correctly does not display that checkbox on the login form; however, after...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.