CodeIgniter Forums
session & multi subdomains - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: session & multi subdomains (/thread-67621.html)



session & multi subdomains - pws - 03-16-2017

Hello,
i create a website with codegneiter and i have a subdomain builded by simple PHP,
and i have user login from main url or blog.. my problem when user connect from blog and go to main url (codegneiter) must relogin agian from site!!
how i can when user logged from blog and go to main site see his account not need relogin again?!
please explain me step by step because i'm ,new with codegneiter..

thanks


RE: session & multi subdomains - dbrooke - 03-16-2017

You have a limit set on your cookie domain path most likely.. look in the docs how to set the cookie path and set it to 'domain.com' rather than 'www.domain.com' or 'blog.domain.com'.

Donovan


RE: session & multi subdomains - pws - 03-16-2017

hello,
please can gve me full example?


RE: session & multi subdomains - dbrooke - 03-16-2017

(03-16-2017, 08:18 AM)pws Wrote: hello,
please can gve me full example?

Please share the URL of both sites that you are dealing with.. thx.

Donovan