| Re: ModDev: PHPSESSID in URL |
| by Coplan on 2004/4/7 2:23:03 I figured it out. Just a warning...use the internal functions to create the link. In theory, this could have been a bug later on if someone had a different setup than I. Here's my old code for the link creation: Quote:
And here's how I do it now (and how it should be done): Quote:
My theory is that somehow, either PHP or the HTML passed the POST data into the URL as GET data. Nevermind that, but using the XOOPS_URL fixed all this. NO redundant URL data anymore. Thanks for the help. Dave_L, your info wasn't the end-all, but it was a definate step in the right direction. |
| Re: ModDev: PHPSESSID in URL |
| by Dave_L on 2004/4/7 0:02:13 That might be your PHP settings. From http://www.php.net/session: Quote: PHP is capable of transforming links transparently. Unless you are using PHP 4.2 or later, you need to enable it manually when building PHP. Under Unix, pass --enable-trans-sid to configure. If this build option and the run-time option session.use_trans_sid are enabled, relative URIs will be changed to contain the session id automatically. |
| Re: ModDev: PHPSESSID in URL |
| by Mithrandir on 2004/4/6 22:16:21 The PHPSESSID in the url has something to do with PHP's session handling - an area, I don't know all that much about. Is your site not working due to this session id in the url? Otherwise, just be careful not to paste links containing your session id. I'm just thinking out loud and not at all sure that it is so, but perhaps if the server could not save a cookie with the sessionid, it passes it on in the url |
| Re: ModDev: PHPSESSID in URL |
| by ajaxbr on 2004/4/6 21:59:21 No permission to access area... anyway, I don't think I'd be able to get any more important info from there. I've tried to find relevant info posted here on xoops.org but couldn't understand what I got (search for sessions and you might catch something my non-programmer's eyes missed). So my out of the blue advice would be "follow your script's execution path untill you find out how sessions get there". Not very helpful, is it? ![]() I hope this bump brings someone skilled enough to help you. |
| Re: ModDev: PHPSESSID in URL |
| by Coplan on 2004/4/6 21:08:32 No one? |