At 1:29 PM -0500 3/5/11, Marc Guay wrote:
> The statement should be at the start of every php file that has php code in it.

Hi Tedd,

Normally I'd agree with this but having never used the function
session_set_cookie_params() before, I looked it up, and the manual
says to put it before session_start().

"Set cookie parameters defined in the php.ini file. The effect of this
function only lasts for the duration of the script. Thus, you need to
call session_set_cookie_params() for every request and before
session_start() is called. "



Okay, but read on -- there seems to be debate on it.




PHP General Mailing List (
To unsubscribe, visit:

Reply via email to