Witam serdecznie!
Jestem w trakcie tworzenia strony w php, jednak napotkałem błędy:
Warning
: session_start() [function.session
-start
]: Cannot send session cookie
- headers already sent by
(output started at
/home
/reklamow
/public_html
/funkcje
/wyloguj
.php
:10
) in
/home
/reklamow
/public_html
/funkcje
/wyloguj
.php on line 13
Warning
: session_start() [function.session
-start
]: Cannot send session cache limiter
- headers already sent
(output started at
/home
/reklamow
/public_html
/funkcje
/wyloguj
.php
:10) in
/home
/reklamow
/public_html
/funkcje
/wyloguj
.php on line
13
po utworzeniu skryptu wylogowania:
<head>
<title>blablabla</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
<link media="screen" type="text/css" href="stylesheet.css" rel="StyleSheet">
<link href='http://fonts.googleapis.com/css?family=Playfair+Display+SC&subset=latin,cyrillic,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="index_info">
<center>
<?php
if($_SESSION['zalogowany'])
{
$_SESSION['zalogowany'] = false;
$_SESSION['myusername'] = '';
$_SESSION['dbpass'] = '';
$_SESSION['rank'] = '';
$_SESSION['email'] = '';
$_SESSION['kolor'] = '';
$_SESSION['group_id'] = '';
echo '<font size=15px><b>Zostałeś poprawnie wylogowany! <a href="logowanie.php">Powrót</a></b></font>'; }
else
{
echo '<font size=15px><b>Nie byłeś zalogowany! <a href="logowanie.php">Powrót</a></b></font>'; }
?>
</div>
</body>
Czy możecie mi powiedzieć co jest nie tak?
Na darmowym hostingu (CBA.PL) to działa, ale na proserwer.pl niestety nie

Wersja PHP: 5.3 (5.3.18)