Error initializing session and registering session variables
Posted: Mon Aug 19, 2002 8:39 am
Hi, The problem is very simple. First let me show you the code:
now, when the user logs in, it works fine, but the session can't start and the variable can't be registered. Here is exactly the kind of error I get:
Warning: Cannot send session cache limiter - headers already sent (output started at c:\cms\_verify.php:14) in c:\cms\_verify.php on line 35
Does anyone here knows what's wrong and why i get such and error?
Is is a problem of server configuration or PHP configuration or anything like that? I would really appreciate it if i could get an answer as quicly as possible. Thank you gentlemen!
Code: Select all
$verified_user = $varname;
session_start();
session_register("$verified_user");
print "Welcome dear <u>$verified_user</u>. You will be automatically redirected to the main page in a few seconds.";
print "<meta http-equiv="refresh" content="0;URL=_overview.php">";Warning: Cannot send session cache limiter - headers already sent (output started at c:\cms\_verify.php:14) in c:\cms\_verify.php on line 35
Does anyone here knows what's wrong and why i get such and error?
Is is a problem of server configuration or PHP configuration or anything like that? I would really appreciate it if i could get an answer as quicly as possible. Thank you gentlemen!