Re: Disappearing $_SESSION
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Tue, 11 Oct 2005 23:12:53 -0500
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@xxxxxxxxxxxxx ================== .
- Follow-Ups:
- Re: Disappearing $_SESSION
- From: DartmanX
- Re: Disappearing $_SESSION
- References:
- Disappearing $_SESSION
- From: DartmanX
- Re: Disappearing $_SESSION
- From: DartmanX
- Disappearing $_SESSION
- Prev by Date: Re: PHP Configuration Problems Part II
- Next by Date: Re: Finding Unused Variables
- Previous by thread: Re: Disappearing $_SESSION
- Next by thread: Re: Disappearing $_SESSION
- Index(es):