Reply to Re: session question

Your name:

Reply:


Posted by Etienne Marais on 12/06/05 13:56

What is the name of the currently
executing script, is it unos_reg.php
or is the exert below from another
script. sess_start must be the first
command before ANY output, even spaces.

Zvonko wrote:

> Hi!
>
> This is my code:
> <?php
> session_start();
> session_register("korisnik", "sid");
> $korisnik = $username;
> $sid = session_id();
> ?>
>
> wherever I put this code on my page i get the following errors:
>
> Warning: session_start(): Cannot send session cookie - headers already
> sent by (output started at /xy/unos_reg.php:3) in /xy/unos_reg.php on line
> 4
>
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at /xy/unos_reg.php:3) in /xy/unos_reg.php
> on line 4
>
>
> What am I doing wrong?

--
Etienne Marais
Cosmic Link
South Africa

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация