Re: Re: Sessions still do not persist
| From: | Torsten Roehr | Date: | Fri, 21 May 2004 18:35:37 +0000 |
| Subject: | Re: Re: Sessions still do not persist | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186700@lists.php.net to get a copy of this message | ||
"Michael R. Wayne" <phpuser@wayne47.com> wrote in message
news:20040521182520.GH92746@manor.msen.com...
> On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote:
> >
> > As far as I remember session.use_trans_sid does NOT work with forms
(action
> > attribute). Have you tried appending it manually to the action?:
>
> Well, this certainly seems to be progress in the correct direction.
> So session.use_trans_sid used to work with forms in 4.1.2 (I'm
> suffering from an upgrade here) but no longer does? This really
> helps.
>
> > <form method="post" action="xxx.php<?= SID; ?>">
>
> This ALMOST works. Looks like a seperator is needed. I get:
> "POST /xxx.phpPHPSESSID=3a2c0413ec84a00e36ea0317c193ccb2 HTTP/1.1"
>
> Do I want ?=PHPSESSID=<sessionID> or just ?=<sessionID> or what?
Sorry, I'm an idiot! The ? was missing:
<form method="post" action="xxx.php?<?= SID; ?>">
This should work. As far as I have seen trans_sid is not used very often -
obviously because of problems like yours. The best way is always to pass the
session ID yourself. Either with a cookie or via GET. I prefer GET because
with cookies you are reliant on the client supporting/allowing cookies.
Regards, Torsten