php - session_set_cookie_params - domain parameters correct value to use -
have seen usage session_set_cookie_params domain parameter null below.
session_set_cookie_params('604800', '/', null, true, true);
consulting documentation suggests domain:
session.cookie_domain string session.cookie_domain specifies domain set in session cookie. default none @ all.....
thus enquiring if
null
is right value use here or should
none
i suppose made mistake translation. if attribute-value empty, behavior undefined according cookies specification.
https://tools.ietf.org/html/rfc6265#section-5.2.3
if want leave param empty should use null or ''. can't set 'none' purpose.
Comments
Post a Comment