|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-03 01:41 UTC] webmaster at roydencom dot com
[2005-01-26 04:50 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Feb 08 17:00:01 2026 UTC |
Description: ------------ Even if I'm runing smarty I think the following issue is clearly php-related. For mod_rewrite-reasons I need absolute url here so although having trans-sid enabled I have to append the SID myself: it looks as if php tries to add the sessionid in just one case (not every time the same one) despite of having an absolute url. if I add an any masked entity like the extra &PHPSESSID=dissapears. Reproduce code: --------------- //smarty initialisation in an include if(empty($_COOKIE[CCNAME])) $this->assign("sessionstring","?".SID); $this->assign("servername",$_SERVER["SERVER_NAME"]); //in the template {foreach from=$nav_produkte item=menupunkt} <a href="http://{$servername}/produkte/{$menupunkt.urlname}.html{$sessionstring}">{$menupunkt.displayname|default:$menupunkt.urlname}</a><br> {/foreach} Expected result: ---------------- <a href="http://myhost.local/produkte/indien.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Indien</a><br> <a href="http://myhost.local/produkte/thailand.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Thailand</a><br> <a href="http://myhost.local/produkte/china.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">China</a> Actual result: -------------- href="http://myhost.local/produkte/indien.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Indien</a><br> <a href="http://myhost.local/produkte/thailand.html?PHPSESSID=ep0od8amd17te5132usq3f0l73"&PHPSESSID=ep0od8amd17te5132usq3f0l73>Thailand</a><br> <a href="http://myhost.local/produkte/china.html?PHPSESSID=ep0od8amd17te5132usq3f0l73">Astro</a><br>k23bn50u6">China</a><br> //because smarty-side $sessionstring being "?PHPSESSID=.+" it looks like a clear php-misbehaviour