s0c0 Posted March 20, 2007 Share Posted March 20, 2007 I've been getting strange output in my url string within my app lately. It adds stuff like ?1174406969965 when I'm not even posting a url string on my forms. This doesn't seem like a big issue, but I was wondering if anyone has ran into this before. I used the following to post to the page: <form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post"> <?php /* If session variable is null then tell the user to login again */ if(!isset($user)) { echo "<p><strong>Your session has timed out, please login again.</strong></p> \n"; } /* begin html table for listing users mp3s */ echo "<table border='0' cellspacing='2' class='bubbletbl'> \n"; echo '<tr>'; echo "<td> </td> \n"; echo "<td width='130'><strong>Song</strong></td> \n"; echo "<td width='130'><strong>Artist</strong></td> \n"; echo "<td><strong> </strong></td> \n"; //echo "<td><strong>Genre</strong></td> \n"; //echo "<td><strong>Length</strong></td> \n"; //echo "<th bgcolor='#CCCCCC'>Playlist</th>"; echo "</tr> \n"; /* loop throgh user's mp3s and create html table row for each */ /* checkbox is given the songs mysql table id */ for($i=0; $i<$num_tracks; $i++) { $row = $trackresult->fetch_assoc(); echo '<tr>'; echo "<td><input type=\"checkbox\" name=\"track[]\" value=\"". $row['id'] ."\"></td> \n"; // radio value is mp3.id echo "<td><a href='" . $row['file'] . "'>" . $row['song'] . "</a></td> \n"; //link is mp3 file echo "<td>" . $row['artist'] . "</td> \n"; echo "<td><a href=\"javascript:popUp('/popup/update/index.php?id=". $row['id'] ."&uid=". $uid ."')\">Update</a></td> \n"; //echo "<td>" . $row['genre'] . "</td> \n" ; //echo "<td>" . $row['playtime'] . "</td> \n"; //echo "<td>" . $row['playlist'] . "</td>"; echo '</tr>'; } echo "</table> \n"; /* post checkbox variables to self, this will delete the selected records */ /* the code for this is at the top of the script around line 30-50 */ echo "<p><input type=\"submit\" name=\"delete\" value=\"Delete Tracks\"> \n"; echo "</form> \n"; ?> Quote Link to comment Share on other sites More sharing options...
per1os Posted March 20, 2007 Share Posted March 20, 2007 Are you using sessions? If so that is the session id being passed, google remove session id from url to turn it off. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted March 20, 2007 Share Posted March 20, 2007 maybe it is something with your class. Quote Link to comment Share on other sites More sharing options...
s0c0 Posted March 20, 2007 Author Share Posted March 20, 2007 Are you using sessions? If so that is the session id being passed, google remove session id from url to turn it off. Yes, I am using sessions, but none of what I have googled is solving the problem. Anyone have an exact how to on this or specific code? If not then I'll eventually figure it out for myself, thanks. Quote Link to comment Share on other sites More sharing options...
per1os Posted March 20, 2007 Share Posted March 20, 2007 create the .htaccess file if it is not already done add the following to the top: php_flag session.use_trans_sid off Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.