开发者

Cannot send session cache limiter, what am i missing?

开发者 https://www.devze.com 2022-12-15 15:41 出处:网络
can someone please tell me what Im missing? this simple script <? session_start(); ?> displays the fol开发者_JAVA技巧lowing error message:

can someone please tell me what Im missing? this simple script

<?
session_start();
?>

displays the fol开发者_JAVA技巧lowing error message:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\test3\index.php:1) in C:\xampp\htdocs\test3\index.php on line 2

thanks.


It may be a Byte Order Mark generated by your text editor.


Check if there are any whitespaces before <? If there is any output before session_start() - it will not work


session_start(); should be the first thing on your page. Before any text, or spaces. Nothing should precede it in your page.

<?php

  session_start();

  /* code here */

?>
0

精彩评论

暂无评论...
验证码 换一张
取 消