Your PHP script isn't allowing users to login in some hostings like ipage. Why does it not support sessions?
PHP requires that you set a path where session data can be saved. The path defaults to a location on the server, but as a shared host, using the default path means your sessions would potentially be viewable by other customers.
To avoid that situation, we recommend using a path that is inside your home directory. Follow the instructions to set a session path.
Refer this Article: