+ Reply to Thread
Results 1 to 8 of 8

Thread: session time out

  1. #1
    Join Date
    Jul 2007
    Posts
    65

    Default session time out

    Why if I don't log out manually the session never expire?
    There is something then I can set?

    Thanks

  2. #2
    Join Date
    Jul 2007
    Posts
    347

    Default

    Set the following in LocalSettings.php to your likings:

    Code:
    $wgCookieExpiration = 2592000;
    2592000 seconds is the default, predefined in includes/DefaultSettings.php.

  3. #3
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    The value is in seconds. So, the default cookie expiration is 30 days.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  4. #4
    Join Date
    Jul 2007
    Posts
    65

    Default

    I don't have that line in LocalSettings.php. Is Correct?
    Can I insert it? In which LocalSettings.php under C:\deki-hayes\web or C:\deki-hayes\web\config?

    Thanks

  5. #5
    Join Date
    Jul 2007
    Posts
    347

    Default

    Yes, you HAVE to insert it if you wanna change it.

    Edit your C:\deki-hayes\web\LocalSettings.php, it's the one you were copying manually while installing Deki.

    Just try it, Deki won't be biting.
    Last edited by merktnichts; 08-19-2007 at 08:17 AM.

  6. #6
    Join Date
    Jul 2007
    Posts
    65

    Default

    I insert the new line in LocalSettings.php but if I'm login, I close the browse and after a few minutes I open wiki-hayes I'm still login.
    I what that if a user not log out the application close the section after a XX minutes.

    Thanks for all support.

  7. #7
    Join Date
    Jul 2007
    Posts
    65

    Default

    $wgCookieExpiration not be used because in WebServiceManagement.php there is a fix value:
    setrawcookie(self:REAMTOKEN, $aToken, time() + 7*24*3600, $wgCookiePath, $wgCookieDomain);

    In new realise 1.8.1d has be correnct?
    Thanks

  8. #8
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    the d release has fixes for this issue - we are moving this value into the config table so the API and PHP both respect the same value. if it's not too important for you, i'd simply wait until we get the d release out.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts