Re: Sending session ID without cookie
| From: | Richard Davey | Date: | Tue, 13 Jan 2004 10:07:11 +0000 |
| Subject: | Re: Sending session ID without cookie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174417@lists.php.net to get a copy of this message | ||
Hello Børge,
Tuesday, January 13, 2004, 9:54:27 AM, you wrote:
BS> I'm trying to send my session ID using POST/GET auto-inserted by PHP.
BS> This works like a charm in a .php file. But in a .cgi file, a new
BS> PHPSSID appears in the Address field of my browser every time I follow
BS> the link from the file to itself.
Although I cannot give you a solution, I have had exactly the same
problem. My host (Pair) offers a wrapped version of PHP which I use
for file uploading so that the files are not owned by "nobody". The
problem being it's a CGI version and the session IDs do not work from
the main Apache module version to the CGI and back.
I don't think it's as simple as making the session path the same for
each version either, but I haven't actually tried it, so you never
know.
In the end I stored the session values in SQL, passed a pointer into
the CGI version which read them out and reconstructed the session and
then did the same when I left the CGI version.
--
Best regards,
Richard mailto:rich@launchcode.co.uk