Results 1 to 4 of 4

Thread: Can we change the Default Session time in PHP

  1. #1
    Join Date
    Nov 2008
    Posts
    88

    Can we change the Default Session time in PHP

    Is it possible to change the Default session time of a given session, this is because some times the default time for a particular session either extends or minimize, so it would be much more better that whether I could manually handle the default session time.

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: Can we change the Default Session time in PHP

    Start Internet Information Services (IIS) administration tool (snap-in) from the Control Panel. Navigate to the "Default Web Site" node, right click on it and then select "Properties". default session time in PHP is 1440 seconds. if we want to change the session time in php, then we have to change in php.ini. In the 'Directory' tab click "Create" button, then click "OK". Click on the "Home Directory" tab, then "Configuration". Click on the "Options" tab. Increase the "Session timeout" value and click "OK" twice until you return to the IIS snap-in.

  3. #3
    Join Date
    Dec 2008
    Posts
    202

    Re: Can we change the Default Session time in PHP

    The session table contains about 170k records and the session_attribute table had about 290k records. To change the default session timeout (which is 60 minutes) you must edit the file web.xml. This file can be found in <YOUR DEPLOYMENT>/WEB-INF/web.xml. After running this particular Trace instance for about a year (since about oct 2007), first off the 0.11 trunk, later on the official release, MySQL started dying as soon as I tried to login.

  4. #4
    Join Date
    Mar 2008
    Posts
    258

    Re: Can we change the Default Session time in PHP

    The value within the session-timeout tag defines the amount of time the session will exist, in minutes. Note that after editing the web.xml file you will need to restart JIRA for your change to take effect. Try to find out these lines from your php.ini file. and change the value to increase the session time out.make sure to restart the machine if you need to test.
    ; After this number of seconds, stored data will be seen as 'garbage' and
    ; cleaned up by the garbage collection process.
    session.gc_maxlifetime = 1440

Similar Threads

  1. How to change default Date/Time color in Windows 7?
    By Shoana in forum Operating Systems
    Replies: 2
    Last Post: 21-03-2012, 12:07 PM
  2. Replies: 4
    Last Post: 17-01-2011, 11:14 AM
  3. can i change the number of connection in HTTP session
    By JustNew in forum Windows Software
    Replies: 5
    Last Post: 19-01-2010, 02:19 AM
  4. Change Work field default to change hours, not duration?
    By Dharitree in forum Microsoft Project
    Replies: 6
    Last Post: 03-11-2009, 03:58 AM
  5. Replies: 3
    Last Post: 16-05-2009, 02:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,898,299.25827 seconds with 16 queries