Welcome Guest, Not a member yet? Register   Sign In
session & multi subdomains
#1

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
Reply
#2

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
Reply
#3

hello,
please can gve me full example?
Reply
#4

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB