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
Expand|Select|Wrap|Line Numbers
- //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($username) || !isset($password)) {
- header( "Location: index.php?pid=1" );
- }
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.