Register A Domain
Knowledgebase: PHP
Can you change session cookie timeout in php.ini for me?
Posted by Michael Torner on 04 May 2012 01:39 PM
You can accomplish this without a php.ini setting by using the function:

session_set_cookie_params(int lifetime [, string path [, string domain]])

This will Set cookie parameters defined in the php.ini file. The effect of this function lasts for the duration of the script.

However, if you would like to alter your php.ini, it is located in your /etc/ directory and you may change it however you like.

Comments (0)