I would like to have my session work in my website when using www. AND when not using it.
I\'ve read this thread:
PHP cookie problem - www or without www
Using the correct hostname across all requests is important for sessions. However, if you are going to be accessing cookies across multiple subdomains then you can specify the domain parameter with a prepended period. I.e.,