sessions in php generated css problem

Permalink
Is there some reason why session variable isn't available here:

#main.php file
<?php
session_register();
session_start();
$_SESSION['php_css'] = "someValue";
<link ... to some other regular css files >
<link href="css.php" rel="stylesheet" type="text/css" />
<!-- normal html continues-->
?>
#css.php file
<?php
session_start();
header("Content-type: text/css");
echo $_SESSION['php_css'];
?>

 
guythomas replied on at Permalink Reply
guythomas
Try stripping out your session register and session start commands. I'm pretty sure c5 does this before your files are run.
Guy
Mnkras replied on at Permalink Reply
Mnkras
Yea, get rid of the session things, c5 already does that.