• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 09: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.