CodeIgniter Forums

Full Version: session & multi subdomains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
hello,
please can gve me full example?
(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