I am using session in my website to authentication of user and check if user is logged in or not.
The problem is that if user login using http://example.com and after this user open the website by using http://www.example.com, the session is not available and he has to login again.
What can I do to solve this kind of issue?