ID:               15426
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Session related
 Operating System: Windows 98
 PHP Version:      4.1.1
 New Comment:

original code is

document.write("<a
href=\'http://banner.echo.com.ua/gf.dll?click?5706&"+un+"\'
target='_top'><img border=0
src='http://banner.echo.com.ua/gf.dll?nf?5706&"+un+";' width=468
height=60 alt='Ukrainian Internet Advertising Centre ECHO'></a>");

and if in this code inserted PHPSESSID

document.write("<a
href="\?PHPSESSID=1e9d0d00b8269ba57ac9f0203636307a"'http://banner.echo.com.ua/gf.dll?click?5706&"+un+"\'

target='_top'><img border=0
src='http://banner.echo.com.ua/gf.dll?nf?5706&"+un+";' width=468
height=60 alt='Ukrainian Internet Advertising Centre ECHO'></a>");

and this insertion causes error


Previous Comments:
------------------------------------------------------------------------

[2002-02-08 02:41:14] [EMAIL PROTECTED]

no :o)

this JavaScript i cute from one from BannerExchange system that i use
on my pages

but if PHPSESSID inserted this code not work and causes error

 - full code is -

<!--Begin of ECHO BannerPlace 468 x 60 code -->
<SCRIPT language="JavaScript">
<!--
var v=navigator.appVersion;
var n=navigator.appName;
un = Math.round((Math.random() * (2000000000)));
if (n=="Microsoft Internet Explorer" && v.substring(0, 1)>="3"){
 document.write("<iframe
src=\'http://banner.echo.com.ua/gf.dll?5706&"+un+"\' width=468
height=60 scrolling='no' frameborder=0 vspace=0 hspace=0 marginwidth=0
marginheight=0></iframe>");
 document.write("<");document.write("!--");}
else
  document.write("<a
href=\'http://banner.echo.com.ua/gf.dll?click?5706&"+un+"\'
target='_top'><img border=0
src='http://banner.echo.com.ua/gf.dll?nf?5706&"+un+";' width=468
height=60 alt='Ukrainian Internet Advertising Centre ECHO'></a>");
//-->
</SCRIPT>
<NOSCRIPT>
<iframe src="http://banner.echo.com.ua/gf.dll?5706&0"; width=468
height=60 scrolling='no' frameborder=0 marginwidth=0 marginheight=0>
<A href="http://banner.echo.com.ua/gf.dll?click?5706&0";
target=_top><IMG src="http://banner.echo.com.ua/gf.dll?nf?5706&0";
border=0 width=468 height=60 alt='Ukrainian Internet Advertising Centre
"ECHO"'></A>
</iframe>
</NOSCRIPT>
<SCRIPT language="javascript">
<!-- 
if (n=="Microsoft Internet Explorer" && v.substring(0, 1)>="3") {
document.write("--"); document.write(">"); }
//-->
</SCRIPT>
<!--End of ECHO BannerPlace code -->

------------------------------------------------------------------------

[2002-02-07 23:15:58] [EMAIL PROTECTED]

Why are you using JavaScript to write out a simple link? This just
causes confusion when you're trying to explain a bug.

To add PHPSESSID to your links, you want to place it in the query
string. So, make your link look like this:

<a
href="http://my.pages/test.php?a=10&PHPSESSID=1e9d0d00b8269ba57ac9f0203636307a";
target="_top">Test</a>

Hope that helps!

Chris

------------------------------------------------------------------------

[2002-02-07 07:03:26] [EMAIL PROTECTED]

When i start IE and load any my pages, i have error
code on first start, but only in on first start
PHPSESID added to all my lnks

in original -

<script language='JavaScript'>
document.write("<a href=\'http://my.pages/test.php?a=10\'
target=\'_top\'>Test</a>");
</script>

but in source i have

<script language='JavaScript'>
document.write("<a
href="\?PHPSESSID=1e9d0d00b8269ba57ac9f0203636307a"'http://my.pages/test.php?a=10\'
target=\'_top\'>Test</a>");
</script>

and this causes error

i have change in php.ini
 session.use_trans_sid = 1
to
 session.use_trans_sid = 0
but this is not work

i have change in php.ini
url_rewriter.tags         =
"a=href,area=href,frame=src,input=src,form=fakeentry"
to
 url_rewriter.tags         = ""
but this is not work too

on Linux-server i have recompile without option -enable-trans-sid and
this work fine, but i dont find way to fix this problem on my
Windows-server


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15426&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to