Jag kan inte få sessionvariabler att funka i php.
Jag har kopierat in ett exempel direkt från php-manualen i ett nytt formulär enligt nedanstående
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>sessiontest</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if (!session_is_registered('count')) {
session_register('count');
$count = 1;
}
else {
$count++;
}
?>
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>
To continue, <A HREF="sesstest.php?<?php echo strip_tags (SID)?>">click here</A>
</body>
</html>
jag får följande 2 fellmedelanden.
Warning: Cannot send session cookie - headers already sent by (output started at /customers/koposalj.net/koposalj.net/httpd.www/sesstest.php:9) in /customers/koposalj.net/koposalj.net/httpd.www/sesstest.php on line 11
Warning: Cannot send session cache limiter - headers already sent (output started at /customers/koposalj.net/koposalj.net/httpd.www/sesstest.php:9) in /customers/koposalj.net/koposalj.net/httpd.www/sesstest.php on line 11
Jjag kör på b-one.nu. Kan problemet vara där.