1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How I will increase session time in php.

Discussion in 'PHP' started by Subikar, Nov 25, 2007.

  1. #1
    I want to extend the session time in php.

    I am giving one example.

    once session is started and I have declare session time for 10 min after 10 min it will ask user to increase the session time when user click ok it will increase the session time. How I will do that???

    Help fast pls. :)

    Thanks,
    Subikar
     
    Subikar, Nov 25, 2007 IP
  2. *louie*

    *louie* Peon

    Messages:
    48
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you wish to increase the session timeout, you may include the following command line in to the first line after the php tags.
    
    ini_set("session.gc_maxlifetime","14400");//seconds
    
    PHP:
     
    *louie*, Nov 25, 2007 IP
  3. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks for the reply. :)
     
    Subikar, Nov 26, 2007 IP