Suppose the domain I am working on is www.example.com
and it has a link shop
which takes the user to subdomain shop.example.com
Now on shop.example.com
when user add product to cart the the cart information is stored in $_SESSION['prd']
variable.
This session variable is available and count
of cart items is perfectly displayed in shop.example.com
but problem arises when i go to example.com
then this session
variable is not there.
I tried adding below line at the end of .htaccess
php_value session.cookie_domain ".example.com"
but this gives 500 error.