You are here: Re: problem with session variables « PHP Programming Language « IT news, forums, messages
Re: problem with session variables

Posted by Jerry Stuckle on 10/10/06 02:03

Garry Jones wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> skrev i meddelandet
> news:tbSdnViJDIv6LbfYnZ2dnUVZ_oudnZ2d@comcast.com...
>
>
>>Are you calling session_start() before ANY output is sent to the browser?
>>This includes html, php output or even white space.
>
>
> No. Are you supposed to?
>
> I can session_start in similar code on other sites and they work ok.
>
> My php session start is in a segment of code called in by a ´condition"
> being met)
>
> This problem is persisting. I need to carry a variable forward past a form
> being read in and processed,
>
> Garry Jones
> Sweden
>
>

Yes. Try adding this code just before you call session_start() and
you'll see your error:

ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_NOTICE);

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

 

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

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