How to increase the Session timeout limit in PHP
If there any way to increase the Session time out limit in php.
As I have a problem some page in my code takes more than 1 hr to modify, and after when I press save, it does not work.
I need to set it to 8 Hrs. Pls suggest.
I haven't tested this out, but based on my understanding, this should do the trick:
Note: make sure the directory specified in session_save_path() is writeable by the PHP user.
# rest of script...
Originally Posted by NogDog
Question: Do we have to put the code ini_set('session.gc_maxlifetime', '28800'); in all our php pages or just on the login page will do?
It would need to be in each file that uses sessions if you do it that way. Of course, it would be easier to put (and the cookie setting, too), into your PHP config file (php.ini) or a local .htaccess file if allowed.
ok thanx for your kind reply.
i have some codes for uploading using php & party third that is flash. i try to upload with max size of 2mb to summerhost, but not work. pls help me!
i get suggest that config via .htaccess file something like this:
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_execution_time 300
But still not work in server
Pls, suggest me.
Increase the session timeout
Am also facing this same problem, Am trying to increase the session timeout.Please make me understand in the following code
is this code really required, if yes please tell me why we need to use this code and how do we build the path.
You only need it if other sites or pages within your site might be sharing the same PHP session data directory, in order to keep those other sites' or pages' session data clean-up times from impacting your times.
Originally Posted by vizay25687
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)