Make sure you have session_start() before any output is sent to the browser,
also look for whitespace at the top of your file, sometimes a blank line or
a space can cause this error.
The reason you get this error is session_start() needs to add information to
the headers but because they have alr
Kris,
Idi na phpbeginner.com tam est 'tutorials' dlya tebya.
Vlad
-Original Message-
From: Kris Vose
Sent: 3 êâ³òíÿ 2002 ð. 12:42
To: [EMAIL PROTECTED]
Subject: [PHP] register session
I am trying to register a session after verification of username and password.
It looks like this:
Well... Whadda ya know. Right after I sent the post I figured it out.
(Solution? Variable variables!)
function register_vars($reg_var) {
// Make the $reg_var global
$global_vars=explode("|", $reg_var);
for ($i=0; $i wrote in message
99dn35$duo$[EMAIL PROTECTED]">news:99dn35$duo$[EMAI
so your trying to take a list of variables and register them as session vars?
$val)
{
global $val;
session_register($val);
}
}
?>
this will work for that.
--
Chris Lee
[EMAIL PROTECTED]
""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message
99dn35$duo$[EMAIL PROTECTED]">
In article <99dn35$duo$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Tobias Talltorp") wrote:
> I am trying to register a session variable in a function without using the
> global in the beginning.
You can pass the variable(s) to the function as an argument. Perhaps it
will be easier to deal with a
5 matches
Mail list logo