Deprecated: Optional parameter $shortcode declared before required parameter $args is implicitly treated as a required parameter in /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php on line 331

Warning: Cannot modify header information - headers already sent by (output started at /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php:331) in /home/ashishka/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php:331) in /home/ashishka/public_html/wp-includes/feed-rss2.php on line 8
php session timeout | Web Hosting Stuff https://www.ashishkale.in Get solutions under one roof Mon, 15 Aug 2016 20:36:58 +0000 en-US hourly 1 How to increase session timeout in php? https://www.ashishkale.in/increase-session-timeout-php/ https://www.ashishkale.in/increase-session-timeout-php/#respond Mon, 15 Aug 2016 20:36:58 +0000 http://www.ashishkale.in/?p=1125 Sometimes php session timeouts quickly before your script execute. You can increase this time by simply editing some directives in php.ini. First locate php.ini root@host[~]# php -i | grep php.ini Configuration File (php.ini) Path => /usr/local/lib Loaded Configuration File => /usr/local/lib/php.ini Get current session time out time root@host[~]# grep -i session.gc_maxlifetime /usr/local/lib/php.ini session.gc_maxlifetime = 14400 ; setting session.gc_maxlifetime to 1440 [...]

The post How to increase session timeout in php? first appeared on Web Hosting Stuff.

]]>
Sometimes php session timeouts quickly before your script execute. You can increase this time by simply editing some directives in php.ini.

First locate php.ini

root@host[~]# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

Get current session time out time

root@host[~]# grep -i session.gc_maxlifetime /usr/local/lib/php.ini
session.gc_maxlifetime = 14400
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):

Edit php.ini

root@host [~]# vi /usr/local/lib/php.ini

Change value of session.gc_maxlifetime.

Restart httpd service!! its done

The post How to increase session timeout in php? first appeared on Web Hosting Stuff.

]]>
https://www.ashishkale.in/increase-session-timeout-php/feed/ 0