Can you change session cookie timeout in php.ini for me?

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.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Dynamic Page Generation

Another common use of PHP with a SQL server is the ability to create web pages on the fly. Using...

What extensions do I use for PHP? Text Tutorial

You can use .php, .php3 .phtml, .php4

What is PHP? Text Tutorial

PHP is a server-side HTML embedded scripting language used to create scripts and/or Web pages. In...

Why do I get a PHP 500 Error? Text Tutorial

Normallly, the permissions on php files should be 644 and the permissions on folders containing...