You are here: Re: [PHP] session woes « PHP « IT news, forums, messages
Re: [PHP] session woes

Posted by Stephen Johnson on 10/04/14 11:12

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
>
>

 

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

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