1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    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