I have a login script that works as follows: Enter the username and password, if ok then save the user data in the session and redirect to the area restriction. I posted my site on bluehost.com and it works great. Therefore, for some reason, I decided to switch to hostgator.com, and the session stopped saving data from the user. All I need to do is add a line in php.ini to disable register_globals
register_globals=Off
source share