Where should session cookies options go? in session_start
or session_set_cookie_params
?
The documentation at php.net is a bit unclear one these as they don't mention session_set_cookie_params
. Are the cookie paramenters in php.int and session_set_ cookie_params
overwritten by the ones in sessions_start
? Can I combine all settings (cookie and otherwise) in one call to session_start
?
EDIT: What is the point of session_set_cookie_params
if these can be nuked by whatever is specified in session_start
?
session_set_cookie_params
is simply "older", existed already beforesession_start
would take any "options", that was only added in later PHP versions.