Back to Top

Get In Touch

Our offices are located in downtown Champaign in the old Surface 51 building south of Champaign Surplus and just north of the intersection of Springfield and Neil:

309 S Neil St., Champaign, IL 61820-3169

Directions

Phone: (217) 531-2966  •   Fax: (866) 298-5499
General Inquiry: [email protected]
Support request: [email protected]

More info »

DNN - Remember Me and Staying Logged in Longer

Stay Logged in for Days or Weeks on Your .NET Website

Friday, December 7, 2018

Author: Jeremy R Farrance

Note: this is meant for technically savvy users and has not been re-written for new users - 20181207 JRF

Edit web.config and update the following nodes to whatever value you require (the appropriate fields are identified in bold below - all values are in minutes i.e. 60 minutes*24 hours*14 days=20160).

The following sets a 2 hour session expiration and allows for Remember Me of 2 weeks via your cookie (unless you click logout).

Under <system.web>, then in <authentication … />

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

In <appSettings>

<add key="PersistentCookieTimeout" value="20160" />   [ 14 days ]

or

	<add key="PersistentCookieTimeout" value="720" />   [ 12 hours ]

 

In English, stay logged in to the site:

  • with Remember Me un-checked = 2 hours
  • with Remember Me checked = 14 days

 

Posted In: Technical  |  Comments (0)

Wanna hear more?

Find out more about our services, or get started on your next project.

Let's go!

quick links