Yes, I see this problem before, There was a setting that you turn on/off in the php.ini file..forgot which one.. maybe these: ; use transient sid support if enabled by compiling with --enable-trans-sid. session.use_trans_sid = 1 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" anyway, as a work around, you can have a redirector to this page, or this page can redirect to itself (to simulate reload) <? // very start of page if (!isset($reload)) { Header("Location: $PHP_SELF?reload=y"); exit(); } // continue script here... ?> "Dana Holt" <[EMAIL PROTECTED]> wrote in message 000001c13a93$edf933e0$6400a8c0@MORPHEUS">news:000001c13a93$edf933e0$6400a8c0@MORPHEUS... > > Ok, this code is used on the index page of on of my sites. It prints out a > list of links from a database. > > I am using PHP sessions. When I open a new browser and go the site for the > first time the HTML that is output by my code is not correct. This is only > on SOME of the lines, but it is always on the SAME lines. After a reload or > even going to another web site and back it works fine every time. I noticed > that PHP is automatically adding a PHPSESSID to the links. I think this is > causing the problem. PHP seems to be adding more than just that. > > Anyone seen this before? Anyone know how I can fix it? > > Thanks in advance for any help! > > <WEIRD HTML START> (first view of page in new browser window) > > <a href='/viewstory.php?story=20&PHPSESSID=61bf547309e9bce7c1e333fb1958cd89' > target="'_self'tr"> > <>Test 1...</a><br> > > <a href='/viewstory.php?story=28&PHPSESSID=61bf547309e9bce7c1e333fb1958cd89' > target="'_self'tr"> > <>Test 2...</a><br> > > <a href='/viewstory.php?story=21&PHPSESSID=61bf547309e9bce7c1e333fb1958cd89' > target="'_self'tr"> > <>Test 3...</a><br> > > <a href='/viewstory.php?story=27&PHPSESSID=61bf547309e9bce7c1e333fb1958cd89' > target="'_self'tr"> > <>Test 4...</a><br> > > <WEIRD HTML END> > > <CORRECT HTML START> (after the first page view I get this) > > <a href='/viewstory.php?story=20' target='_self'>Test 1...</a><br> > > <a href='/viewstory.php?story=28' target='_self'>Test 2...</a><br> > > <a href='/viewstory.php?story=21' target='_self'>Test 3...</a><br> > > <a href='/viewstory.php?story=27' target='_self'>Test 4...</a><br> > > <CORRECT HTML END> > > <PHP CODE START> > > while($row = mysql_fetch_assoc($result)) { > > echo "<a href='/viewstory.php?story="; > echo $row["RECORD_ID"]; > echo "' target='_self'>"; > > if (strlen($row["HEADLINE"]) > 20) { > echo substr($row["HEADLINE"], 0, 20); > echo '...'; > } else { > echo $row["HEADLINE"]; > } } > > echo '</a>'; > echo '<br>'; > } > > <PHP CODE END> > > -- > Dana Holt / [EMAIL PROTECTED] > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]