my sessions only work with a sub-domain, e.g. www. ,and do not work without that sub-domain.
For example, when a user is logged in.
If the address is n
If you want the php session to work all your subdomains, you must change cookie_domain option. Type this to top of your script:
cookie_domain
ini_set('session.cookie_domain', '.example.com' );