PHP session timeout

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dario

    PHP session timeout

    I've modify the php.ini the session.gc_maxl ifetime to reduce
    the time of timeout of the session variabiles.
    But it not seems to go. In fact the session variabile remain
    also when after the timeout that i've set.

    Can help me?
  • Justin Koivisto

    #2
    Re: PHP session timeout

    Dario wrote:
    [color=blue]
    > I've modify the php.ini the session.gc_maxl ifetime to reduce
    > the time of timeout of the session variabiles.
    > But it not seems to go. In fact the session variabile remain
    > also when after the timeout that i've set.
    >
    > Can help me?[/color]

    PHP 4.3.x
    session.gc_prob ability = 1
    session.gc_divi sor = 2

    Before 4.3
    session.gc_prob ability = 50

    This will make the garbage collection for the sessions run every 2nd
    time a session_start() is called implicitly or explicitly. Yes, I know
    it will have an effect on performance, so adjust as you see fit.

    --
    Justin Koivisto - spam@koivi.com
    PHP POSTERS: Please use comp.lang.php for PHP related questions,
    alt.php* groups are not recommended.

    Comment

    Working...