We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Sending sessions between subdomains

hi, i can one question.

How to share session state across subdomains for ex: shop.domein.com and domein.com

with phalcon

i check this https://forum.phalcon.io/discussion/2474/session-across-subdomains



85.5k

as long as the subdomains are on the same server i dont see a problem, i use subdomain and sessions are working perfectly.

Check the Path of the PHPSESSID cookie, the only problem i can think of

Sometime the problem with sessoin and domains comes from your php configuration.

That mays help: https://stackoverflow.com/questions/644920/allow-php-sessions-to-carry-over-to-subdomains