Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Remember Me not working for Login

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
jayvilla
Posts:35



05/20/2007 12:29 AM  

Why is it that after so much time, My login is not remembered when I visist the site? I always have to keep logging in. Is there any way to change how long I am loggged in or is there a way to set it to where I am always logged in when I visit the site?

John Mitchell
Posts:2767



05/20/2007 9:37 AM  

Hi Jay,
The "Remember Me" feature of the DotNetNuke Login is implemented by placing an encrypted authentication cookie on the user's machine.

The expiration of this cookie is controlled through the timeout value in the Forms Autentication node  the web.config.

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

The default setting is 60 minutes, so it can't remember anyone for very long (I call it goldfish mode).

To extend the time your users are remembered make the timeout value larger.


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

 

You can also make it a sliding expiration which means that every time someone visits with an auth cookie thier time will be reset to the value in the timeout.  That way you can keep the timeout shorter, but still convienient for your visitors that make it back to your site before it expires.


      < forms name=".DOTNETNUKE" protection="All" timeout="10080" slidingExpiration="true"
cookieless="UseCookies" />

Now as long as your visitors make it back before the timeout your DotNetNuke memory for who they are will be in Elephant mode.

 

jayvilla
Posts:35



05/20/2007 10:37 AM  
I just found this site last night, and am extremely excited because it seems as if you answer most of the threads here. I wanted to thank you for that. Other boards I post questions to don't respond most of the time.
jayvilla
Posts:35



05/20/2007 10:49 AM  
It worked great! The thing is that there were just a couple of errors in your code. It should read...


<form>s name=".DOTNETNUKE" protection="All" timeout="10080" slidingExpiration="true"
cookieless="UseCookies" />

Thanks a million!
John Mitchell
Posts:2767



05/20/2007 11:32 AM  

Thanks for the feedback.  I pasted my code with a space after the opening < so that it would post correctly.

I see also that the code you are posting self-closes that form tag at the end, which is correct unless you have other nodes inside the form tag (which I do).

For anyone else looking at this, it's best just to change the items in bold.

John Mitchell
Posts:2767



05/20/2007 11:56 AM  

Ok, I went back and changed my original post to include the closing tag since that is what most people will have.

I also removed the other posts to save on confusion if anyone else is looking at this.

Thanks again for the feedback.

John Mitchell
Posts:2767



07/17/2007 10:15 AM  

I explained this in a little more detail on the DotNetNUke forums in the following thread:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/threadid/145428/scope/posts/Default.aspx

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >Frequently-Asked-Questions > Remember Me not working for Login



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.1 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information