解决php中Cannot send session cache limiter 的有关问题

WBOY
Release: 2016-06-13 13:12:08
Original
941 people have browsed it

解决php中Cannot send session cache limiter 的问题

今天在使用php 的session 的时候,出现了以前就遇见但是又解决不了的问题,在页面上出现如下提示:

Warning: session_start() [function.session-start]: Cannot sendsession cache limiter - headers already sent (output started atE:\php\code\admin.php:1) in E:\php\code\logolist\adminlogo.php online 2

上网搜了一下,有人说是因为在session_start();语句之前有其他的html代码,但是我的session_start(); 已经在做前面了。

但是我做如上设置之后还是会有这个提示。后来经过反复测试,终于解决问题。

解决办法:

修改php.ini中的session.auto_start = 0 为 session.auto_start = 1。


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template