Loganathan Natarajan
asked on
How can I access user session from main domain to sub domain?
I have a main website like www.test.com and sub domain as www.blog.test.com ( this source also part of main source)
Project source is
How do I access/share the session from www.test.com to www.blog.test.com sub domain?
If I access like this www.test.com/blog .. the session works fine but not working www.blog.test.com/session?
Project source is
/Source ---> pointed to www.test.com (php codeigniter, mysql site)
-- about
-- pages
-- blog (wordpress) ---> pointed to www.blog.test.com (wordpress)
-- images
-- images
How do I access/share the session from www.test.com to www.blog.test.com sub domain?
If I access like this www.test.com/blog .. the session works fine but not working www.blog.test.com/session?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cookies are almost Always used. The other way is to put the session_id in a querystring in the URL for each page so it gets passed from page to page. If sessions are working and you are not seeing the session id in the address bar, then cookies are being used. http://us2.php.net/manual/en/session.idpassing.php
Note that anything you do that alters the session cookie must be done on Each and Every page in the session.
ASKER
Thanks Dave Baldwin. Let me workaround.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks ray, will check
ASKER
Thanks Ray.
ASKER