Link to home
Start Free TrialLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

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

/Source  ---> pointed to www.test.com  (php codeigniter, mysql site)
-- about
-- pages
-- blog (wordpress)  ---> pointed to www.blog.test.com (wordpress)
-- images
-- images

Open in new window


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
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Loganathan Natarajan

ASKER

Is there any other way with out Cookie? Because cookie may be disabled know?
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.
Thanks Dave Baldwin. Let me workaround.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks ray, will check
Thanks Ray.