473,671 Members | 2,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

login control remember me doesn't work

I have a login page which requires all users to login everytime they visit,
the remember me feature isn't working. We all have cookies and js enabled.

Any suggestions on how to diagnose this?
My login aspx:

<asp:Login ID="Login1" runat="server" BackColor="#FFF FCC"
BorderColor="#5 400A8" BorderPadding=" 4" BorderStyle="So lid" BorderWidth="1p x"
Font-Names="Verdana, Arial" Font-Size="12px" ForeColor="#333 333"
MembershipProvi der="myMembersh ipProvider" PasswordRecover yText="Can't
remember your password?" PasswordRecover yUrl="PwdRecove ry.aspx"
Height="150px" Width="245px"> <TitleTextSty le BackColor="#540 0A8"
Font-Bold="True" Font-Size="14px" ForeColor="Whit e" />
<InstructionTex tStyle Font-Italic="True" ForeColor="#540 0A8" />
<TextBoxStyle Font-Size="14px" />
<LoginButtonSty le Font-Names="Verdana" Font-Size="12px" ForeColor="#540 0A8" />

My web config:

<authenticati on mode="Forms" >
<forms name="CCAuth"
loginUrl="myLog in.aspx"
timeout="20"
slidingExpirati on="true"
cookieless="Aut oDetect"
protection="All "
requireSSL="fal se"
enableCrossAppR edirects="false "
defaultUrl="def ault.asp"
path="/" />
</authentication>
<membership defaultProvider ="myMembershipP rovider">
<providers>
<add name="myMembers hipProvider"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="myDB"
applicationName ="/"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="true"
passwordFormat= "Hashed"
minRequiredPass wordLength="6"
minRequiredNona lphanumericChar acters="0"
maxInvalidPassw ordAttempts="10 " />
</providers>
</membership>
Jun 29 '06 #1
1 2537
Dabbler <Da*****@discus sions.microsoft .com>'s wild thoughts
were released on Thu, 29 Jun 2006 06:54:02 -0700 bearing the
following fruit:
>I have a login page which requires all users to login everytime they visit,
the remember me feature isn't working. We all have cookies and js enabled.
IIRC the timeout was changed thus rendering the 'remember
me' feature useless, so you need to set a timeout in your
web config to get it working again.

somthing like

<authenticati on mode="Forms">
<forms timeout="43200"/>
</authentication>

J

>Any suggestions on how to diagnose this?
My login aspx:

<asp:Login ID="Login1" runat="server" BackColor="#FFF FCC"
BorderColor="# 5400A8" BorderPadding=" 4" BorderStyle="So lid" BorderWidth="1p x"
Font-Names="Verdana, Arial" Font-Size="12px" ForeColor="#333 333"
MembershipProv ider="myMembers hipProvider" PasswordRecover yText="Can't
remember your password?" PasswordRecover yUrl="PwdRecove ry.aspx"
Height="150p x" Width="245px" <TitleTextSty le BackColor="#540 0A8"
Font-Bold="True" Font-Size="14px" ForeColor="Whit e" />
<InstructionTe xtStyle Font-Italic="True" ForeColor="#540 0A8" />
<TextBoxStyl e Font-Size="14px" />
<LoginButtonSt yle Font-Names="Verdana" Font-Size="12px" ForeColor="#540 0A8" />

My web config:

<authenticati on mode="Forms" >
<forms name="CCAuth"
loginUrl="myLog in.aspx"
timeout="20"
slidingExpirati on="true"
cookieless="Aut oDetect"
protection="All "
requireSSL="fal se"
enableCrossAppR edirects="false "
defaultUrl="def ault.asp"
path="/" />
</authentication>
<membership defaultProvider ="myMembershipP rovider">
<providers>
<add name="myMembers hipProvider"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="myDB"
applicationName ="/"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="true"
passwordFormat= "Hashed"
minRequiredPass wordLength="6"
minRequiredNona lphanumericChar acters="0"
maxInvalidPassw ordAttempts="10 " />
</providers>
</membership>

Jan Hyde (VB MVP)

--
"Caring for Fine Wood" by Lindsey Doyle (David Reihmer)

Jul 4 '06 #2

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

Similar topics

0
1581
by: elektrophyte | last post by:
I'm developing a webapp that needs to track users and provide each user with a view of their own data. In other words, it goes beyond merely protecting certain areas of the site. The application needs to know WHO is logged in and show them their own blog, uploaded documents, reminders, etc. I'm looking for a free component (library, class, script, module, whatever you want to call it) that will help me accomplish this. It should allow...
2
1883
by: John | last post by:
Hi I am using login control with sql server based membership/roles. I have checked the 'remember me' tick box but the login control does not show the username/password when I next come back to the login control page. What do I need to do to enable this persistence? Thanks Regards
2
1280
by: baerland | last post by:
Hi I'm having a hard time getting the "remember me" functionallity to work with the new Login control in ASP.NET 2.0. The Authenticate event works fine and I get logged in, but if I restart the browser, I'm presented with the login page again. I thought I only needed to set the DisplayRemeberMe=true and the control would create the cookies and everything.
6
3349
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in the past in other places, and while the help was much appreciated, it seemed everyone just wanted to 'theoretically' explain how to do it, but when I tried to do it myself, I couldn't login. I want to simply pass the email address and password to...
20
3171
by: luqman | last post by:
If user login with the login control in ASP.Net 2005 and then just close the browser and then open the browser again, the login status shows, User still Login? Any idea, how to Logout the User when the User click on the Close Button of Browser ? I am using Sql Membership Provider for security. Best Regards,
4
3838
by: GaryDean | last post by:
I'm using the 2.0 login control with the "remember me" setting. When checked the cookie only last for a few hours then it is asking again for a login. I don't see any time settings. I know back when we did our own authentication we specified FormsAuthentication.RedirectFromLoginPage(tbEmail.Text, True) and the cookie lasted forever. -- Regards, Gary Blakely
1
2334
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
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
1
3317
by: =?Utf-8?B?VEo=?= | last post by:
Hi, Environment : Asp.net 2.0 / C# As you know, there is a "Remember me" check box in Login control is VS.NET 2005. It allows you to get in the page without logging it if user closes browser, instead of logging out. It works...however, in the authenticate event, what if session is used?
0
1154
by: Anup Daware | last post by:
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I set my custom Remember be cookie on the login page. Following are the details: 1. Authentication mode is ‘Forms’ 2. This issue is reproducible only in deployed applications, I found this using my trace and remote debugging 3. This issue occurs...
0
8393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8821
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8598
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2812
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.