I have seen many articles regarding session sharing between subdomains, and I can’t quite make things work.
Setup:
Localhost – Apache2.4 with vhosts – 2 domains (one of which is top level domain, and one a sub-domain)
Top level domain is using php5.3 (yes, I know we need to get off of that), raw coded php
Sub-domain is using 8.x and CodeIgniter4
Logging into CodeIgniter site session cookie is generated with PHPSESSID as name. Logging into php5.3 site after, the php encoded site generates another session cookie with the same name (although instead of PHPSESSIDxxx, it is sess_xxx where xxx is the same). Both session cookies are being to same location, but the fact that there are 2, suggests there is no access between them.
Anyone have any ideas? I have tried pretty much everything that I’ve found on-line, including CodeIgniter settings, php_ini settings (in php.ini and calls in php before session call).
Anyone have any ideas? I have tried pretty much everything that I’ve found on-line, including CodeIgniter settings, php_ini settings (in php.ini and calls in php before session call).
Used these as references (and more) – https://www.digitalocean.com/community/tutorials/how-to-run-multiple-php-versions-on-one-server-using-apache-and-php-fpm-on-ubuntu-18-04
Allow PHP sessions to carry over to subdomains – many looks in stackoverflow
https://www.pixelstech.net/article/1356723388-How-does-PHP-session-work
https://codeigniter.com/user_guide/libraries/sessions.html
https://clouddevs.com/codeigniter/handle-sessions-across-multiple-domains/