#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    17
    Rep Power
    0

    How to extend Cookies Session ?


    Hi everybody,

    I am just doing some maintenance on one of the sites.
    Website is done in DNN (asp.net).

    When user enters password and username, user only stays logged in for one hour. I want to change this so users is logged in as longer as possible.

    I copied part of the code below, I think I need to change one of the settings below, but I just wanted to confirm with one of you guys.

    Also what is maximum I can extend cookies session to, because there is no remember password option.

    Code:
    <anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS" cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain=""/> <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <clear/>
    Many thanks
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    17
    Rep Power
    0
    I have managed to fix cookies session time out it was in code below.

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


    The issue now is if your browser is opened it will stay logged in, soon as you close browsers it logs out.

    Thanks,

IMN logo majestic logo threadwatch logo seochat tools logo