PHP Session_Status() Questions

Discussion in 'Free Hosting' started by addozone, Jan 30, 2018.

  1. addozone

    addozone Member

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    8
    Two questions, I'll keep 'em short:

    1. I read in other threads that the X10 php session inactivity timeout for free hosting sites is the php default of exactly 24 minutes and we can't change that. Can anyone confirm if this is correct or incorrect? Not a problem, just need to know.

    2. When a php session times out, should I expect the session_status() value to be updated, or will it be left at 2? I don't know if that is an X10 question or a php question ...just looking for some X10 wisdom.

    Cheers.
     
  2. lylex10h

    lylex10h Active Member

    Messages:
    672
    Likes Received:
    43
    Trophy Points:
    28
    I can mostly answer question 1. The session.gc_maxlifetime value (local and master) is 1440(/60 seconds = 24 min.). I'm 99.9% sure we cannot change this.
     
    • Like Like x 1
  3. addozone

    addozone Member

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    8
    .
    Thanks for the quick response. Just to make sure we're talking about the same thing, I can be active on my site for long periods of time and my session will keep going (because I keep triggering those session_starts()). But when it's idle, the 24 minute timer is ticking. Correct?
     

Share This Page