The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to change session length

Discussion in 'General Discussion' started by steele, Jul 2, 2004.

  1. steele

    steele Active Member

    Joined:
    Aug 27, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Hi all,

    is there a way to change the default browser session length?
    (I didn't find any topic on this...)

    Thanks!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Browser session length for what?
     
  3. steele

    steele Active Member

    Joined:
    Aug 27, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    The length of time after which the session expires when you're browsing sites. If you 're for example using the session variables in PHP, they have certain time validity depending on the length of the session. The default time is I think 20 minutes or so.

    Is there a way to change this?

    Thx.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Well, that's something particular to PHP and nothing really to do with cPanel or Apache (there's no real concept of a session in HTTP beyond a single resource request).

    Maybe a PHP programmer will stop by with an answer for that ;) I would suspect a php.ini modification would be in order.
     
  5. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    I am by no means a PHP programmer, strickly Perl by preference.... no flames please,... but in the php.ini file is a section called [Session] which I assume controls the defaults for SESSION management, similar to controlling a session with Perl and cookies or Apache::Sessions

    Under that secition is a line that states:

    session.cookie_lifetime = 0 ; lifetime in seconds of cookie
    which I assume control the time of an active session... but again, I maybe wrong :)

    Mickalo
     
Loading...

Share This Page