Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sessions
#1
Halo zusammen,

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 Smile
[Image: 5%20cent.gif]°~°~°Wenn du Rechtschreibfehler findest kanst du sie behalten.°~°~°
[Image: create.php?uid=1736]
Reply


Messages In This Thread
Sessions - by 5 cent - 04.09.2009, 20:58
RE: Sessions - by Bettdecke1 - 04.09.2009, 21:01
RE: Sessions - by 5 cent - 04.09.2009, 21:04
RE: Sessions - by Bettdecke1 - 04.09.2009, 21:05
RE: Sessions - by agent47 - 04.09.2009, 21:17
RE: Sessions - by dispy - 04.09.2009, 21:18
RE: Sessions - by 5 cent - 04.09.2009, 21:29



Users browsing this thread: 1 Guest(s)