Menu

#1260 (ok 4.4) setting LoginCookieValidity > session.gc_maxlifetime

Needs_decision
fixed
None
Low
2015-04-20
2010-09-27
Jackpod
No

when setting LoginCookieValidity to a value greater than session.gc_maxlifetime, the UI displays a message "Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin."

however, a more accurate message should be displayed

something like...

"Your PHP parameter session.gc_maxlifetime is lower than the cookie validity configured in phpMyAdmin, because of this, your login has a 1 in 100 chance of expiring after 1440 seconds of inactivity"

the actual numbers can be derived from session.gc_divisor, session.gc_probability and session.gc_maxlifetime

Discussion

  • Jackpod

    Jackpod - 2010-09-28

    since the probability is so often set very low, and the session will rarely, if ever, expire after inactivity

    the displayed message should be changed from an error to a note

    the current message implies that there is an incorrect configuration that needs to be addressed, even though the current settings are desired

    a note is more appropriate

     
  • Marc Delisle

    Marc Delisle - 2010-09-28

    Moved to feature requests.

     
  • Marc Delisle

    Marc Delisle - 2010-09-28
    • labels: 317619 -->
    • milestone: 1232560 -->
     
  • Danny

    Danny - 2011-12-21

    Personally I'd like to be able to disable this error message. As the OP says, this causes no issues. My login cookie validity is 2147483647, my session.gc_maxlifetime is 1440, and I never see the session expire. That said, I don't wish to change session.gc_maxlifetime.

    It'd be nice if this was added into Settings > Features > Warnings.

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
    • Group: --> Needs_decision
     
  • Madhura Jayaratne

    • summary: setting LoginCookieValidity > session.gc_maxlifetime --> (ok 4.4) setting LoginCookieValidity > session.gc_maxlifetime
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2015-02-15
    • Priority: 1 --> Normal
     
  • Marc Delisle

    Marc Delisle - 2015-02-15
    • Priority: Normal --> Low
     
  • Marc Delisle

    Marc Delisle - 2015-04-20
    • Status: resolved --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.