Reply to Re: problems with session variables

Your name:

Reply:


Posted by Jerry Stuckle on 10/11/05 23:22

Japhy wrote:
> hello,
> I am finding that setting session variables is very unreliable (for
> me).
>
> Am I doing something wrong with syntax :
> $contnum = getrequest("ID1") ; (ID1 is passed in the URL)
> $_SESSION['sess_contnum']= $contnum ;
>
> My program will randomly start to fail.
> If I echo $sess_contnum, sometimes it is set, sometimes not.
>
> I am using Apache 2.0.53 as a web server. Are there any parameters I
> should be aware of (more memory allocated for SV's or ?).
>
> thanks for any help!
>

Japhy,

Are you calling session_start() at the *beginning of every page* which
uses sessions?

This *must* be done before *any* output is sent to the browser if you're
using cookie based sessions.

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

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