New to PHP Sessions and Cookies.
I have an old login script that I'm trying to upgrade to work with a new cross sub-domain feature. It was all written with $_SESSION
instead of $_COOKIE
. (From what I've ready, anything set to a SESSION var doesn't carry over cross domain, even after I've set the cookie params for the entire domain and root directory).
If I do a Search and Replace for $_SESSION
and change it to $_COOKIE
, am I going to have to make a lot of syntax changes, or do mostly operate the same way?