session

Discussion in 'PHP' started by remo, Jul 20, 2007.

  1. remo

    remo New Member

    Joined:
    Jul 20, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I was using session variable in my script.
    The default session expire time is 180min.
    I have to change the session expire time using php how it is possiable
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    session_cache_expire (newExpireTime);
    session_start ();

    Let me recommend the PHP manual as a very good guide for things like this.
     
  3. remo

    remo New Member

    Joined:
    Jul 20, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi, Thanks for your reply.
    I have posted the same in another forum too.
    He said me to make changes in ini file.
    I am using linux. I am able to find php.conf file in linux.
    but no session details in it.
    where can i find that file.
     
  4. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    48
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    The php.conf may or may not be present! Some admins usually put the directives relating to php in the httpd.conf itself! You can find php.ini in /etc/
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice