Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD Forms Authentication with "Remember Me"AD Forms Authentication with "Remember Me"
Previous
 
Next
New Post
12/30/2009 12:35 PM
 

I am trying to get the "Remember Me" feature working using the AD provider with Forms Authentication.  I've got the following in my web.config:

<add key="PersistentCookieTimeout" value="525600" />
...
<authentication mode="Forms">
     <forms name=".DOTNETNUKE" protection="All" timeout="120" cookieless="UseCookies" />
</authentication>

It seems like my login is being remembered.  I can close my browser and reopen it, go to the webpage and I'm still logged in.  However, when I come in the next day and reopen the browser my login has been forgotten.  I haven't tested it, closed the browser, and then gone out at the end of day - which I should to be clear as to when this happens.

I think that I'm just not understanding what these 2 settings are, but my understanding is that "PersistentCookieTimeout" is for the "Remember Me" feature and the ".DOTNETNUKE" cookie is the length of time a user remains authenticated within a single session.  Am I terribly mistaken about this understanding or is something else gone awry here?

I'm using DNN 5.2.1 with the 5.0.2 AD Provider on Server 2008 R2 Std (this is only 64-bit) & SQL Server 2008 Standard.

 
New Post
12/31/2009 1:04 PM
 

It seems that I've confirmed my original hunch from a couple of different sources:  the cookie resets every night, no matter what I set the PersistentCookieTimeout and .DOTNETNUKE Cookie timeout to be (I switched the .DOTNETNUKE and PersistentCookieTimeout values to be 21600 minutes or 15 days).  Anybody have any thoughts?

 
New Post
1/5/2010 6:47 AM
 

I guess the solution is in your browser settings.

 
New Post
1/6/2010 11:22 AM
 

I have checked this with all the major browsers on both PC and Mac with the same result.  Each night, the "Remember Me" browser cookie resets.

Here's a listing of (what I think are) the relevant cookies and their expirations - based on inspecting the cookies:

.ASPXANONYMOUS:  60 days
.DOTNETNUKE:  15 days
DotNetNukeAnonymous: ~5 hours
authentication:  At End Of Session  --- this has a value of "Active Directory"
portalaliasid:  ~5 hours
portalroles:  ~5 hours

 
New Post
1/8/2010 11:41 AM
 

I've never looked at trying to have it remember the password. I know with automatic logins the session cookie lasts about an hour but it's a random value that can't be set.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD Forms Authentication with "Remember Me"AD Forms Authentication with "Remember Me"


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out