the PHPSESSID variable that holds the session id is not being saved into the client cookie.
This results in a new session id being generated every time I call the ses
It looks like the cookie's domain is being set to localhost. This will only work if you're actually running your website from localhost. You need the session.cookie_domain to match your domain name, optionally with a . in front of it (as in .example.com) to also include subdomains.