|
Posted by Mignon Hunter on 03/23/05 23:00
Bingo
ya know I knew that about the headers but it threw me since it worked on my box perfectly no matter where I put the session_start();
Lo and behold I check out the php.ini on my box and there it was:
output buffering=4096
I did not know about the output buffering. BUT I just moved my session_start(); to the very tip top in we're in ship shape. Sorry for all the strange sayings
Thanks so much to Jason, Stephen and John
Ciao
>>> Stephen Johnson <maillists@pets4u.com> 03/23/05 11:30AM >>>
You need to make sure that output_buffering is turned on in your php.ini
file on the dev server.
<?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
stephen@thelonecoder.com
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?>
> From: "Mignon Hunter" <mignon.hunter@tic.toshiba.com>
> Date: Wed, 23 Mar 2005 11:20:24 -0600
> To: <php-general@lists.php.net>
> Subject: [PHP] session woes
>
> I had my script working beautifully on my box but when transferring to dev
> server no such luck
>
> Because we have an older version of php on the webservers, I had to get my
> admin to change the php.ini on the
> session.use_trans_id = 1
> so that the SID wouldnt show in the URL. But I'm not sure if that's what is
> causing my problem now.
>
> It seems I'm not able to transfer and use session data from one page to
> another. I registerd and stored my var in a session variable and can see it on
> sess_downloads_p2 but then I loose it on p3.
>
> I'm also getting
>
> [23-Mar-2005 09:04:47] PHP Warning: Cannot send session cookie - headers
> already sent by (output started at /var/www/htdocs/sess_downloads_p2.php:5) in
> /var/www/htdocs/sess_downloads_p2.php on line 60
> [23-Mar-2005 09:04:47] PHP Warning: Cannot send session cache limiter -
> headers already sent (output started at
> /var/www/htdocs/sess_downloads_p2.php:5) in
> /var/www/htdocs/sess_downloads_p2.php on line 60
>
> where line 60 is my session_start();
>
> I'm kinda clueless as to what to try next.
>
> Thanks for any ideas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Navigation:
[Reply to this message]
|