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.