Sessions, cookie header conflicts
Posted: Wed Feb 11, 2004 3:15 am
i am using sessions to store the name of the skin for my site the code is some thing like this
session_start();
if(!session_register($_SESSION['Skin'])){
$_SESSION['Skin'] = "Default";
}
and i am using the value of the $_SESSION to include the index.php of the skin folder
include("Skinz/".$_SESSION['Skin']."/index.php");
when i run the script i am getting a waring the
session cookie cannot be balh balh... header already sent
how do i eliminate this warning using ob_start() and related fuction
or is there any possibilty of eliminating this warining with out using ob_start
session_start();
if(!session_register($_SESSION['Skin'])){
$_SESSION['Skin'] = "Default";
}
and i am using the value of the $_SESSION to include the index.php of the skin folder
include("Skinz/".$_SESSION['Skin']."/index.php");
when i run the script i am getting a waring the
session cookie cannot be balh balh... header already sent
how do i eliminate this warning using ob_start() and related fuction
or is there any possibilty of eliminating this warining with out using ob_start