I created website using PHP MySQL and I used the database for storing the session. When i set up my website on my host (www.bluehost.com). My sessions were all over the place and some pages session will work and for others it will log me out.
I searched for the answer and i bumped into this answer and which further sent me to this video. All it was telling is that the white space before <?php may cause this. and this question has -1 ranking as well. I didn't believe it but since nothing else was working i looked into and i did see the 4 pages that were giving me trouble has a single white space before <?php and removing it solved it.
I have no clue why this was the trouble and