I just ran into an interesting problem; maybe it’s well-known and I just couldn’t find the solution.
A user is browsing through the site,
http ://www.thesite.com, and all is well. He goes to the site’s online shop. He loads a few items into his cart, which is stored in the SESSION at this point. Then he goes to the "checkout", which is
https ://www.thesite.com/checkout.html. The session values are lost, and now there are two session cookies in his browser cache, one with the original session_id, the other for the new HTTPS session which is empty.
An empty cart automatically redirects him back to the main shop page, with an empty cart. But now he’s still in HTTPS, so anything he does now gets carried across to the checkout page OK.
I hacked a workaround, getting the session_id and passing it in the GET to the plugin that loads the SESSION and doing some checks and killing a new session and restarting the old one if necessary. But I was wondering if there is a better way, or if this should be happening, or if it would be better to somehow have MODx know not to start a new session under these circumstances, or if that’s even possible. Or something.