I know this seems like remedial stuff, but I haven't had to deal with this in years!
Thanks to Google forcing my sites to move all pages to secure, I'm having to modify some things. One of the issues is that when my users log in, I haven't specified a domain, I just set name, value, and expires. So right now, I'm beta testing on a secure subdomain (https://beta.example.com), and those cookies aren't readable.
So two questions:
1. How do I set the cookie on the insecure page so that it can be read on the secure subdomain, and then later the secure domain (without the subdomain)? IIRC, I can set it for the subdomain by using domain=.example.com, but that wouldn't be readable on the secure domain. And also, I don't think I can use use domain=.example.com; Secure on an insecure page, can I?
2. Is there any way to check for the proper cookie directives on the insecure domain (without subdomain), and if it doesn't have them then I can reset the cookie?