disable php automatic addion of ?PHPSESSIONID=xxxx to url

drieriurgip

New Member
I'm developing a web site which uses wp-cumulus on its homehttp://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/it's a flash component to show a nice cloud tag.in order to use it I issue:\[code\]<script type="text/javascript">[...]flashvars.tagcloud = "<tags><a href='http://stackoverflow.com/tag.php?tag=Marinetti'>Marinetti</a><a href='http://stackoverflow.com/tag.php?tag=lang'>Lang</a></tags>";[...]</script>\[/code\]and at the home page (index.php) I issue a redirect like\[code\]<?header( 'Location: http://ludion.com.ar/home.php' );exit;?> \[/code\]the problem is that when redirected php automatically adds an &PHPSESSIONID=xxxx to every link, yes, included the javascript stuff!!!resulting:\[code\]<script type="text/javascript">[...]flashvars.tagcloud = "<tags><a href='http://stackoverflow.com/tag.php?tag=Marinetti&PHPSESSID=75f82a44003ee8c421dda3db52ad1f93'>Marinetti</a><a href='http://stackoverflow.com/tag.php?tag=lang&PHPSESSID=75f82a44003ee8c421dda3db52ad1f93'>Lang</a></tags>";[...]</script>\[/code\]and the componente doesn't seem to like ampersand, so it just doesn't work...how can I prevent php from adding that stuff?I've already tried with:\[code\]ini_set( 'session.use_cookies', true );ini_set( 'session.use_trans_sid', false );\[/code\]in index.php, but it didn't workI also tried creating and .htaccess file at the root with the following content:php_value session.use_only_cookies 1php_value session.use_trans_sid 0and withphp_flag session.use_only_cookies 1php_flag session.use_trans_sid 0but the sites just hangs-up, with the following errors in the log\[quote\] [Mon Jan 11 12:01:13 2010] [alert] [client 201.250.119.217] /www/docs/ludion.com.ar/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration ... [Mon Jan 11 12:11:27 2010] [alert] [client 201.250.119.217] /www/docs/ludion.com.ar/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration\[/quote\]any idea???
 
Back
Top