开发者

Mobile Web using PHP Sessions Problem

I am enabling an existing platform written in PHP to be delivered via mobile web browser. I am getting the "Cannot send Session Cache limiter - headers already sent" error.

First line of code is <? php session_start(); ?> This is the line in question.

Since it is for delivery on a smart phone, we have the standard headers:

<!DOCTYPE html PUBLI开发者_开发百科C "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />

If I go to a flat <html><head><body> configuration, I can manage the sessions, but then of course I lose my phone enablization.

I am at a loss 3-4 hours of experimenting in.


Issue not in "mobile web", you just have to fix your error with headers. After headers already sent should be line, where headers sent.
Try to remove BOM symbol, try to use ob_start().
At least try to use search - headers already sent it's most frequently asked question in PHP.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜