You are here: Re: Session termination issue « PHP Programming Language « IT news, forums, messages
Re: Session termination issue

Posted by Bent Stigsen on 06/18/06 17:25

TristaSD wrote:

> I tried to follow php.net manual to the best of my ability, but I'm
> getting two errors now:
>
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent
> Warning: Cannot modify header information - headers already sent by

Make sure you don't have any output before calling session_start. Not even a
space or a newline.

> All I want to do is create a login page that starts the session, and a
> logout page that destroys the session. I'm having a hell of a time.

You'll get there. Just remember that session_start needs to be called in all
pages that uses the session-functions or access the session data.

--
/Bent

 

Navigation:

[Reply to this 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

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