Re: Session Variable
| From: | Daniel Beulshausen | Date: | Thu, 03 Aug 2000 17:19:46 +0000 |
| Subject: | Re: Session Variable | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1530@lists.php.net to get a copy of this message | ||
hi
> Warning: Cannot send session cache limiter - headers already sent by
(output
> started at D:\Inetpub\wwwroot\peg\form_eleicao.php:17) in
> D:\Inetpub\wwwroot\peg\form_eleicao.php on line 31
>
> What I'm doing wrong???
do output anything before you start the session? there are some ways to
solve that:
1. start the session before you output anything.
<? session_start() ?>
<html><head>...
your session id is:<?=session_id() ?>
2.or activate the putput buffering either in your php.ini or in the
script. i recommend that you start the buffer before you output
anything.
<? ob_start() ?>
....
greetings
daniel
/*--
daniel beulshausen - db@phpopentracker.de
using php on windows?
http://www.mm4.de/andreas.otto/php_related/mod_php4_win32/>