I designed a simple site which has a login for users to access their account page. When i had my files uploaded on a terrible hosting service site, my website I designed was fully functional. I moved my site to this newsit.es host service because it is ten times better but my login script wont work anymore. I believe it has to do with the settings not allowing sessions. Does this sound right?
I tried hundreds of times and it kept sending me back to the login page. I figured i set up the mysql connection settings wrong but I tested it by designing a simple page which would select all ids from a specific table inside the database and was able to retrieve all of the data.
Any ideas on how to get by this session login problem?
Here is the first lines of my login script
[CODE=php]
//check that the user is calling the page from the login form and not accessing it directly
//and redirect back to the login form if necessary
if (!isset($userna me) || !isset($passwor d)) {
header( "Location: index.php?pid=1 " );
}
[/CODE]
When I try to login i get the index.php?pid=1 error
Could this be a mysql settings problem? I have two other sites with this script on two completely different web host services and never had a problem.
I tried hundreds of times and it kept sending me back to the login page. I figured i set up the mysql connection settings wrong but I tested it by designing a simple page which would select all ids from a specific table inside the database and was able to retrieve all of the data.
Any ideas on how to get by this session login problem?
Here is the first lines of my login script
[CODE=php]
//check that the user is calling the page from the login form and not accessing it directly
//and redirect back to the login form if necessary
if (!isset($userna me) || !isset($passwor d)) {
header( "Location: index.php?pid=1 " );
}
[/CODE]
When I try to login i get the index.php?pid=1 error
Could this be a mysql settings problem? I have two other sites with this script on two completely different web host services and never had a problem.
Comment