Re[2]: [PHP] Sessions simply do not work?
| From: | Tom Rogers | Date: | Wed, 26 May 2004 12:21:57 +0000 |
| Subject: | Re[2]: [PHP] Sessions simply do not work? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186984@lists.php.net to get a copy of this message | ||
Hi,
Wednesday, May 26, 2004, 2:28:58 AM, you wrote:
MRW> On Tue, May 25, 2004 at 07:37:47AM +0100, Peter Risdon wrote:
>> Michael R. Wayne wrote:
>>
>> >In my continuing efforts to actually get sessions to work, I upgraded
>> >to PHP 4.3.6 and apache 1.3.31. This did not make the slighest
>> >difference.
>> >
>> >So, does ANYone have ideas of how to debug this? Or is PHP simply
>> >broken and no longer able to maintain sessions?
>>
>> I've just been debugging some session problems. Successfully, but there
>> is something rather brittle in there somewhere
MRW> It seems that people have forgotten last week's postings. To recap:
MRW> Session support worked fine in 4.1.2. It's broken in 4.3.4 and 4.3.6.
MRW> The relevant session variables are:
MRW> Session Support enabled (as per phpinfo)
MRW> session.auto_start On or Off (makes no difference)
MRW> session.use_cookies Off <- not using cookies
MRW> session.name PHPSESSID
MRW> session.use_trans_sid Off (trans_sid worked with forms in 4.1.2)
MRW> session.gc_maxlifetime 1440
MRW> Other things people have asked about:
MRW>
MRW> url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry
if your not using cookies you have to pass the sessionid in your form
as a hidden variable somewhere. Or maybe I missed it :)
--
regards,
Tom