this is the short version of my code
login($username.$password);
if($_SESSION["logged"]=="yes")
{
code here
}
else
echo("Session has expire or not logged in. Please login");
functions
function login($username,$password)
{
//mysql stuff to check the password
if(login_correct)
{
session_start();
$_SESSION["logged"] ="yes";
}
else
echo ("invalid login");
}
but everytime i try i get the session expire massage..
the login system worked fine... so nothing is wrong there
it's the session thing...
my php.ini
; php.ini for PEAR tests
include_path=..
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= ghz@hotpop.com ; for Win32 only
upload_tmp_dir = D:\PHP\uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
[Session]
session.save_path= D:\PHP\sessiondata ; argument passed to save_handler
error_reporting=E_ALL; display all errors, warnings and notices
anybody have any idea what i did wrong??