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
Use session_set_cookie_params function before calling session_start, it allows you to set the session domain and other things, set the domain to your domain prefixed with a . to make the session available to subdomains as well.