Cholthi Paul Ttiopic Cholthi Paul Ttiopic - 1 month ago 5
PHP Question

PHP: what is the difference between session_name and cookie session name

In PHP sessions what's the difference between name set by

session_name()
and name in session cookies as in
setcookie(name,...)
.Do they have the same value ?

Avi Avi
Answer

Yes.The session name references the name of the session, which is used in cookies and URLs . http://php.net/session_name

Comments