Halo zusammen,
ich habe mal wieder, wie so oft, ein Problem.
Diesmal mit Sessions.
wenn ich mich nun einlogge, bekomme ich die Fehlermeldung:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\xampp1.6.7\htdocs\gps_shop\login.php:9) in D:\xampp1.6.7\htdocs\gps_shop\login.php on line 11
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\xampp1.6.7\htdocs\gps_shop\login.php:9) in D:\xampp1.6.7\htdocs\gps_shop\login.php on line 11
Hope 4 help
ich habe mal wieder, wie so oft, ein Problem.
Diesmal mit Sessions.
PHP Code:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>GermanPartyShop - Login</title>
<link rel="stylesheet" type="text/css" href="res/style.css" media="screen, print" />
</head>
<body>
<?php
session_start();
?>
PHP Code:
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
if($row->nick == $_POST["account"])
{
$line = $row->id;
$nick = $row->nick;
$since = $row->since;
$pass = $row->pass;
}
}
if($
if(crypt($_POST["password"], $pass) == $pass && $nick != "")
{
// Session Variablen setzen
$_SESSION['id'] = $line;
$_SESSION['aname'] = $nick;
$_SESSION['since'] = $since;
$_SESSION['online'] = 1;
$meldung = "Du wurdest erfolgreich eingeloggt.";
}
wenn ich mich nun einlogge, bekomme ich die Fehlermeldung:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\xampp1.6.7\htdocs\gps_shop\login.php:9) in D:\xampp1.6.7\htdocs\gps_shop\login.php on line 11
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\xampp1.6.7\htdocs\gps_shop\login.php:9) in D:\xampp1.6.7\htdocs\gps_shop\login.php on line 11
Hope 4 help
°~°~°Wenn du Rechtschreibfehler findest kanst du sie behalten.°~°~°