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