• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session in different sub -domain

I have 3 differnt sub domain and each one have the login of user..
I want every time the user do login/register from any sub domain redirect to other subdomain where will see his panel..
How i can do this with session?

I'm not sure if it can be done. Have you tried to set the session save path and the cookie settings to the same thing in your 3 subdomain so they use the same session data?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com

Hello, thanks for your reply..
How i change path and cookies settings? and what must i write?

Read this page: http://codeigniter.com/user_guide/librar...references
I'm not sure it would work, but you can try. Set the same directory for your session data (sessionSavePath) and set the cookie for your main domain so it can be used by all 3 subdomain (cookieDomain and cookiePath). But again, I'm not even sure this would work.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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