Re: [PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
On Mon, May 03, 2004 at 01:13:11AM -0400, John W. Holmes wrote: > Michael R. Wayne wrote: > > > > > > > > > > Try adding in a hidden element > > > > You're relying on PHP rewriting your forms, links, etc, to include the > session id, but that doesn't seem to be happening. I

Re: [PHP] sessions failing to persist

2004-05-02 Thread Curt Zirzow
* Thus wrote Michael R. Wayne ([EMAIL PROTECTED]): > > I suspect I'm missing something obvious, any pointers? > > /\/\ \/\/ > > if (!session_is_registered("stage")) { >$_SESSION["stage"] = 0; >$_POST['field'] = ""; >session_register("stage"); >} Caution If you are using $_SE

Re: [PHP] sessions failing to persist

2004-05-02 Thread John W. Holmes
Michael R. Wayne wrote: Try adding in a hidden element You're relying on PHP rewriting your forms, links, etc, to include the session id, but that doesn't seem to be happening. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect:

Re: [PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
On Mon, May 03, 2004 at 06:55:25AM +0200, Richard Harb wrote: > If the sample of code is the whole page... where do you actually start > your session? I am using session.auto_start, which starts it for me. I added a session_start while testing and it made no difference. > session_is_registered()

Re: [PHP] sessions failing to persist

2004-05-02 Thread Richard Harb
If the sample of code is the whole page... where do you actually start your session? I didn't see a session_start() anywhere. AFAIK the $_SESSION var doesn't exist until you do just that. session_is_registered(): mabe I'm reading the documentation wrong, but I interpret this function as checking

Re: [PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
On Mon, May 03, 2004 at 12:54:54AM -0400, John Nichel wrote: > Michael R. Wayne wrote: > > >As I posted last week, I seem unable to have sessions persist. I > >have ruled out https as a problem, the following simple script, > >installed as xxx.php will generate a new session number every time > >

Re: [PHP] sessions failing to persist

2004-05-02 Thread John Nichel
Michael R. Wayne wrote: As I posted last week, I seem unable to have sessions persist. I have ruled out https as a problem, the following simple script, installed as xxx.php will generate a new session number every time the field is filled in and "Submit" is hit. Note that I am not using cookies,