sessions dropping

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

    #1

    sessions dropping

    Hi,

    I've been having some trouble with sessions. I have a pw-protected section of
    my website where members can log in and use tools to edit their websites. The
    problem is sessions seem to disappear at random. I can't seem to isolate a
    particular set of circumstances under which this happens.

    I realize this is a vague problem, but does anyone have any tips as to how I
    could go about isolating the cause? I'm open to wild guesses :o)

    session.cache_e xpire 180 180
    session.cache_l imiter nocache nocache
    session.cookie_ lifetime 0 0
    session.gc_maxl ifetime 1440 1440
    session.gc_prob ability 1 1
    session.referer _check no value no value
    session.save_pa th /tmp /tmp
    session.use_coo kies On On
    session.use_onl y_cookies Off Off
    session.use_tra ns_sid Off Off

    I'm using PHP 4.3.0 on Linux/Apache, testing most with IE 6.

    TIA,
    Shawn

    --
    Shawn Wilson
    shawn@glassgian t.com

  • John Wellesz

    #2
    Re: sessions dropping

    On 02 avr. 2004, Sir Shawn Wilson <shawn@glassgia nt.com> claimed in
    news:406D6AC1.1 A112DAA@glassgi ant.com:
    [color=blue]
    > Hi,
    >
    > I've been having some trouble with sessions. I have a pw-protected
    > section of my website where members can log in and use tools to edit
    > their websites. The problem is sessions seem to disappear at random.
    > I can't seem to isolate a particular set of circumstances under which
    > this happens.
    >
    > I realize this is a vague problem, but does anyone have any tips as to
    > how I could go about isolating the cause? I'm open to wild guesses :o)
    >
    > session.gc_maxl ifetime 1440 1440[/color]


    Don't your session files disappear after 1440 seconds of non use? (mtime is
    used to test)

    Also make sure session.save_pa th is not set to a path (default is /tmp)
    where files are autaumatically deleted after some time...

    I strongly advise you to read http://www.php.net/manual/en/ref.session.php


    John

    Comment

    Working...