473,414 Members | 1,677 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,414 software developers and data experts.

Forms authentication - SetAuthCookie doesn't set permanent cookie

Hello,

I have a site protected by forms authentication, and when the user logs
in, I do the following...

FormsAuthentication.SetAuthCookie(txtUsername.Text , chkRemember.Checked);

where chkRemember is an <asp:CheckBox> control. If this is checked, then
it should save the user's info in a cookie and log them in automatically
next time.

Trouble is, it doesn't. The user always has to log in each time, even if
they tick the check box. This happens for several people, so it's
nothing to do with an individual user turning off cookies.

Any idea? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 1 '06 #1
1 4561
Anyone?
Hello,

I have a site protected by forms authentication, and when the user logs
in, I do the following...

FormsAuthentication.SetAuthCookie(txtUsername.Tex t, chkRemember.Checked);

where chkRemember is an <asp:CheckBox> control. If this is checked,
then it should save the user's info in a cookie and log them in
automatically next time.

Trouble is, it doesn't. The user always has to log in each time, even
if they tick the check box. This happens for several people, so it's
nothing to do with an individual user turning off cookies.

Any idea? TIA


--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 2 '06 #2

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

Similar topics

2
by: BH | last post by:
I developed a small web app using the FormsAuthentication class to set a cookie (FormsAuthentication.SetAuthCookie(value, isPersist)). The cookie persists fine on my local PC when "isPersist" is...
5
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want...
5
by: oakleyx | last post by:
Hi, I'm using asp.net form authentication. The problem i'm having is when my cookie expires it redirects me to the login page, so I log in again and it brings me to the page that I was on last...
3
by: Paul W | last post by:
Using Forms Authentication, I'd like to 'piggy-back' a small piece of information onto the authentication cookie. I tried the following, but this seems to invalidate the cookie, so...
0
by: abhijit | last post by:
hi, I am facing a strange forms authentication problem in IE 5.0 browser in MAc OS X 9.5 I could not test it in safari. this code: public partial class _Default : System.Web.UI.Page {...
1
by: javatopia | last post by:
Hello, I have a series of applications that have URLS like the following: http://www/root/app1 http://www/root/app2 http://www/root/app3 All have the same domain and root URL, but...
1
by: Mark Olbert | last post by:
I'm building an ASPNET2 website which uses forms authentication but does not use the Microsoft-supplied membership providers (mostly because I don't want to create my own provider at this point, and...
3
by: bob.abrahamian | last post by:
Hi All. I found several threads about this specific issue here, but could not find a solution to my specific problem. Most of the threads suggested that there would be a difference between...
8
by: =?Utf-8?B?TFc=?= | last post by:
Hello! I am just learning about forms authentication so please excuse this basic question. I am using .NET 1.1 and C#. I have created my web.config file and my login.aspx and the associated cs...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.