Hello gary,

Try to put session_* functions before any output (echo, etc):

session_start();
session_register("temp");

header("Content-type: text/vnd.wap.wml");
echo ("<?xml version=\"1.0\" ?>\n");
echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\";>");



g> Hi all,
g>         I am trying to use session in my wml. So, I add the following
g> statement in my php.
g> header("Content-type: text/vnd.wap.wml");
g> echo ("<?xml version=\"1.0\" ?>\n");
g> echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
g> \"http://www.wapforum.org/DTD/wml_1.1.xml\";>");
g> session_start();
g> session_register("temp");
g>  But it's not sucessful and I get the following error message. Should I
g> set some parameter to use session in wml format? Can anyone help me?
g> Thanks!

g> <b>Warning</b>:  Cannot send session cookie - headers already sent by
g> (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
g> <b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
g> <br>
g> <b>Warning</b>:  Cannot send session cache limiter - headers already
g> sent (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
g> <b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
session_start() wants to send a cookie with session id, but it can't.


g> Gary



-- 
Best regards,
 Ruslan Ohitin
 mailto:[EMAIL PROTECTED]



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to