Share user session across multiple subdomains? |
(08-01-2018, 03:46 AM)jreklund Wrote: I would do something like this: Hi admin, I'm new on codeigniter, (but not php or programing ) that same cookie domain does not works for me my sites are on same domain but different sub domains, on same server, different mysql db's and totally different user table sutructure. what is your advice?
For you to be able to access it form subdomains the cookie need to be named .domain.com.
Code: $config['cookie_domain'] = ".domain.com"; And for sharing the same login on different databases, you can't. You need to combine it into one login server and different application databases. As you have no way of knowing where the userdata are stored. |
Welcome Guest, Not a member yet? Register Sign In |