Welcome Guest, Not a member yet? Register   Sign In
Carry session data over subdomains?
#1

[eluser]IanMcQ[/eluser]
Hi guys,

I have a copy of CodeIgniter running on battlepedia.thedailyneopets.com. I'd like to carry that session data over to other subdomains under thedailyneopets.com. Is this possible with CodeIgniter? If so, how do you do it? I'm trying to access session variables set on battlepedia.thedailyneopets.com on my other subdomain (through $this->session->userdata()) but it's not returning things at all. The two subdomains will be using the same database and everything, so it'll be really nice to have flawless integration with that and stuff.

Please let me know if this is possible and how to do it.

Thanks in advanced! I really appreciate the help this forum offers!
#2

[eluser]Isern Palaus[/eluser]
I don't know at all using cookies but i think that if you use the sessions in the DB probably works.

Regards,
-- Isern Palaus
#3

[eluser]Rick Jolly[/eluser]
Maybe this will help:
http://ellislab.com/forums/viewthread/57101/
There is also a link to another applicable thread within that one.
#4

[eluser]IanMcQ[/eluser]
Thanks! Changing the cookie name to .my-domain.com worked! Big Grin Sessions are now universal.
#5

[eluser]Unknown[/eluser]
I modified like this $config['cookie_domain'] = "nettutsapp.com";

But not works , please help me




Theme © iAndrew 2016 - Forum software by © MyBB