I recently moved this project: http://www.lsdrift.com/gtsettings/ to here: http://idm.ldrift.com/gettings/ .
The problem is the new folder does not work. Now I've double check this about a hundred times, and all the paths are correct and everything. The problem lies at the login screen. My program is dependent on things set in $_SESSION[''] vars. This is my login, pretty typical ( see below ). User enters info, I double check on my backend... if its verified I take the info gathered from the DB, and store it in $_SESSION[''] vars.
No matter what account I login as, it will just not save any session variables, but it will save session variables in its original directory...
So... in conclusion.. Help!
hehe.
The problem is the new folder does not work. Now I've double check this about a hundred times, and all the paths are correct and everything. The problem lies at the login screen. My program is dependent on things set in $_SESSION[''] vars. This is my login, pretty typical ( see below ). User enters info, I double check on my backend... if its verified I take the info gathered from the DB, and store it in $_SESSION[''] vars.
No matter what account I login as, it will just not save any session variables, but it will save session variables in its original directory...
PHP:
<?
session_start();
ob_start();
include('http://idm.lsdrift.com/standard/standard.inc');
if ($cmd=="login"){
$query="SELECT * FROM users WHERE username='". addslashes($uname) . "' AND password='" . addslashes($upass) . "'";
$result = mysql_query($query,$db);
if ((($rows=mysql_num_rows($result)) == 1)) {
echo "Login successful... starting user session";
// set users variables we are going to interact with
$userdata=mysql_fetch_array($result);
$_SESSION['username'] = $userdata['username'];
$_SESSION['accdate'] = $userdata['accessdate'];
$_SESSION['acclevel'] = $userdata['accesslevel'];
$_SESSION['numposts'] = $userdata['numposts'];
$_SESSION['avatar'] = $userdata['avatar'];
$_SESSION['email'] = $userdata['email'];
$_SESSION['name'] = $userdata['name'];
$_SESSION['age'] = $userdata['age'];
$_SESSION['location'] = $userdata['location'];
$_SESSION['interests'] = $userdata['interests'];
$_SESSION['website'] = $userdata['website'];
$_SESSION['aim'] = $userdata['aim'];
$_SESSION['icq'] = $userdata['icq'];
$_SESSION['msn'] = $userdata['msn'];
$_SESSION['bio'] = $userdata['bio'];
$_SESSION['datereg'] = $userdata['date_registered'];
$_SESSION['toggle'] = 0;
$query="UPDATE users SET accessdate='". date("Ymd") . "'";
$result=mysql_query($query,$db);
header("Location:main.php");
}
else {
echo "<center>Login unsuccessful... please try logging in again</center>";
include("login.html");
}
}
else {
include('login.html');
}
?>
So... in conclusion.. Help!