0

I need to maintain PHP sessions across multiple subdomain or domains on the same server. I am going to be integrating my sites with a Register/Payment gateway, etc.., So i will need to use MySQL based sessions.

Ex. subdomain to sharing in between ..,

test.com

register.test.com

myaccount.test.com

Are there any other options? Pros/Cons?

Thanks in advance..!!!

OpenWebWar
  • 580
  • 8
  • 16
  • save the sessions in a DB – volkinc Sep 25 '15 at 14:47
  • @volkinc: Any method available .. model script..? – OpenWebWar Sep 30 '15 at 13:20
  • the approach is, you run common db that store sessions with the fields like id, site, sessionid, date So all requests will path through this table so don't forget to clean it up. read this http://stackoverflow.com/questions/13911210/why-is-it-good-save-session-in-database and Google for examples – volkinc Sep 30 '15 at 14:49

0 Answers0