Reply to Re: Disappearing $_SESSION

Your name:

Reply:


Posted by Jerry Stuckle on 10/12/05 07:12

DartmanX wrote:
> Mike,
>
> All pages have session_start() immediately following the includes. The
> headers are set AFTER the session_start().
>
> Following the session_start() is a mess of print() functions that
> output a formatted XML file. I just realized that this file doesn't end
> with session_write_close(). Is this causing the problem?
>
> Jason
>

Jason,

Is there *anything* in the include files which could cause output to be
sent? i.e a blank line?

Try putting

<?php session_start(); ?>

as the very first line in your pages (before ANYTHING else - even a
blank line!). See if that works.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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