How to extend PHP Session through .htaccess file

i have a site and i want to extend the session for a month

i wrote these lines in my .htaccess file :

php_value session.cookie_lifetime 2592000
php_value session.gc_maxlifetime 2592000

but still the session destroys after like an hour
i have tried a lot of things but didn’t come up with a result

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.