Re: Sessions still do not persist

From: Date: Fri, 21 May 2004 20:41:00 +0000
Subject: Re: Sessions still do not persist
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186719@lists.php.net to get a copy of this message
* Thus wrote Michael R. Wayne (phpuser@wayne47.com): > > I've posted several times mentioning that I am completely unable > to cause sessions to persist. Over the intervening time, I have > replicated this problem to a different machine, with the same > results. Here's a recap of the problem. > > I am not using cookies. Sessions are automatically created (and > changing that makes no difference) The relevant session variables > (copied from phpinfo) are: > Session Support enabled > session.auto_start On <- hence no session_start > session.name PHPSESSID > session.use_cookies Off <- no cookies > session.use_trans_sid On url_rewriter.tags? > > Environment is FreeBSD4.8. phpinfo for apache says: > Apache/1.3.29 (Unix) mod_perl/1.28 PHP/4.3.4 mod_ssl/2.8.16 OpenSSL/0.9.6d > > > Here is a cut/paste of the borwser screen for the code below: > > Stage:0 SessionID: 04ace04b1fe0bc81d2cd678c9bab1619 > _____ [Submit] > Stage:1 SessionID: 04ace04b1fe0bc81d2cd678c9bab1619 Request: Array ( ) > > So I type "foo" into the box and hit submit. And the session variable > is NOT preserved: > > Stage:0 SessionID: 55c70989b7279d6a18edfd81b28d67a6 > foo___ [Submit] > Stage:1 SessionID: 55c70989b7279d6a18edfd81b28d67a6 Request: Array ( [PHPSESSID] => > 04ace04b1fe0bc81d2cd678c9bab1619 [field] => foo ) It seems php isn't picking up that session that is in $_REQUEST.. which part of request is that variable in? do this? print_r($_GET); print_r($_POST); print_r($_COOKIE); Also, is the PHPSESSID being written in the form output somewhere? View source of form output. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#186719) next »