PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
itsmani1
Forum Regular
Posts: 791 Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:
Post
by itsmani1 » Sat Mar 28, 2009 3:54 am
Hi
I have 1 domains with 3 sub domains I want to share login on all 3 sub domain and main domain I am using following code and It should work.
Code: Select all
session_set_cookie_params(3600, '/', '.mydomain.com');
session_start();
Any Idea?
I want to know "has it something to do with server configuration?" or its because of something else?
Thanks.
requinix
Spammer :|
Posts: 6617 Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA
Post
by requinix » Sat Mar 28, 2009 4:32 am
Use something like Firebug to inspect the cookies you're sent and make sure they are what they're supposed to be.
itsmani1
Forum Regular
Posts: 791 Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:
Post
by itsmani1 » Sat Mar 28, 2009 4:45 am
thanks for your reply
I hope this will fix my problem.
Can you please give me a guess how can i check it in firebug?
Thanks again