Support Forum
 
  Support Forum  DNN General Dis...  General DNN   Remember me...
Previous Previous
 
Next Next
New Post 10/23/2007 11:40 AM
  u101440
132 posts
5th Level Poster


Remember me... 

We currently use DNN 4.5.1 and I have a question about the length of sessions and the remember me part of the login. We have set the Users online time in Host settings to 20 minutes and I assume this will be the length of the session for each user (correctly me if I'm worng please) but is it simply a case of changing this to a higher number to lengthen the session or do we need to alter something in the .NET setup (or the web.config file)?

Another problem we appear to have is no matter if we click the remember me tick box, we are not remebered the next time you come back in.

I notice on this site (and many others) that no matter how long it's been since you were away, if you ticked that box you are remembered. Is there something I'm missing in the configuration or do we need to move to 4.6.2?

Thanx

 
New Post 10/24/2007 10:31 AM
  Brian Dukes
231 posts
5th Level Poster


Re: Remember me... 

I believe that the Users Online setting only affects how DNN keeps track of how many users are online (how long a user is inactive before they are considered offline).  I don't think that it will affect the session length, and I know that it won't affect how long you are remembered.  What behavior are you seeing that makes you want to lengthen the session?  The session should take care of itself under most circumstances.

The "remember me" length of time is set in the web.config.

<authentication mode="Forms">
  <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
</authentication>

The timeout attribute defines how many minutes that the authentication cookie is good for.  This is 60 by default, which is why it seems that it never works.  Here's the MSDN documentation on the forms element in the web.config,.


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 10/24/2007 11:18 AM
  u101440
132 posts
5th Level Poster


Re: Remember me... 

Thanx for the reply. Basically what I'm seeing at the moment is that users need to keep entering their username/passwords repeatedly for each session unless they come back in within about 20 minutes or so.

So if I logged onto my site now then left it and came back in about an hour then I'd need to log in again (even if I had the remember me ticked, etc). However it's been 24 hours since I was on this site and I've had no need to login as the cookie appears to have remembered me.

Should this be the case? Should I need to have to log in every time even if I've got the remember me ticked?

 
New Post 10/24/2007 11:20 AM
  Brian Dukes
231 posts
5th Level Poster


Re: Remember me... 

The purpose of the "remember me" check box is so that you don't have to log in again if you shut down your browser and then go immediately back to the site.  It will remember you for 60 minutes by default.  If you aren't concerned about security for your site, you can update the web.config and set the timeout to 10000 minutes or so to give the typical "remember me" experience.


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 10/24/2007 11:21 AM
  u101440
132 posts
5th Level Poster


Re: Remember me... 

Is this what has been done here then?

 
New Post 10/24/2007 11:36 AM
  Chris Hammond
873 posts
2nd Level Poster


Re: Remember me... 

Here's what I have set here on EngageModules.com

    <add key="PersistentCookieTimeout" value="10000" />

      <forms name=".DOTNETNUKE" protection="All" timeout="10000" cookieless="UseCookies" />


DotNetNuke Core Team Member
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 10/24/2007 11:41 AM
  u101440
132 posts
5th Level Poster


Re: Remember me... 

Thanx as always guys.

 
Previous Previous
 
Next Next
  Support Forum  DNN General Dis...  General DNN   Remember me...
Buy now!

Purchase modules

click here to buy now

Please click here to register for an account and payment will be processed via PayPal.

Test Drive!

Test drive our modules

click here to test drive our modules

Want to find out how it works? Visit our demo site to see the modules in actions!

Subscribe

Sign up for our newsletter and get the latest product updates!

Online Support

Get the latest!