Re: Problems with session id

From: Date: Fri, 08 Sep 2000 15:44:50 +0000
Subject: Re: Problems with session id
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15899@lists.php.net to get a copy of this message
Actually what it is doing is splitting your first part 'id=whatever' and inserting session_name=123343... between the = and whatever, like: you want: <a href=xxx.php?id=3&session_name=abc> you get: <a href=xxx.php?id=&session_name=abc3> I worked around it by putting in a dummy variable before my necessary variable. I.E. <a href=xxx.php?dummy=<? print(""); ?>&id=<?=id?>> which would give you <a href=xxx.php?dummy=&session_name=abc&id=3> This was using trans-sid enabled btw. > Following problem: > > When the session id is added automatically to the links on a php page > the php parser often omits the value of another get variable added to a link. > > It looks like this. > <a href=xxx.php?id=&session_name=123456abc...> > > In this case I cannot register the id variable as a session variable > because it is generated several times in a search result. > Using forms with a hidden field might be a solution but will cause much > more code. > > PHP 4.0.1 PL2 is installed. > > Is this a bug fixed in the latest version or is there a trick to resolve > this problem or at least an explanation for this strange behaviour? > > Thank you for your help. > > Bärbel > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#15899) next »