Welcome Guest, Not a member yet? Register   Sign In
session in different sub -domain
#1

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

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
/*** NO support in private message - Use the forum! ***/
Reply
#3

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

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
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB