Adam Posted February 15, 2007 Share Posted February 15, 2007 i wasn't sure where to post this, as i wasn't sure how it would be fixed. I'm trying to get my webpage to validate as strict XHTML, there's 1 or 2 errors i know how to fix, but this one i'm not sure... basically, the server appears to be generating "PHPSESSID=blahblah" (sometimes) on links and forms. Of course this means it's using "&PHPSESSID=blahblah" which means it's not validating. http://www.minimerc.co.uk/new/shop.php?c=E-Class&m=W114-W115 (not much works yet so no point in trying to view other pages) How can I stop the server from doing this (i have .htaccess rights, but cannot change the server configuration directly) - Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/38636-server-adding-session-id-to-links-and-forms/ Share on other sites More sharing options...
zq29 Posted February 15, 2007 Share Posted February 15, 2007 Try including this on pages you have started a session on: <?php ini_set("session.use_trans_sid",0); ?> Quote Link to comment https://forums.phpfreaks.com/topic/38636-server-adding-session-id-to-links-and-forms/#findComment-185549 Share on other sites More sharing options...
Adam Posted February 15, 2007 Author Share Posted February 15, 2007 Thanks for the help, but it's still not working ... http://validator.w3.org/check?uri=http%3A%2F%2Fwww.minimerc.co.uk%2Fnew%2Fshop.php%3Fc%3DE-Class%26m%3DW114-W115 Quote Link to comment https://forums.phpfreaks.com/topic/38636-server-adding-session-id-to-links-and-forms/#findComment-185583 Share on other sites More sharing options...
Adam Posted February 15, 2007 Author Share Posted February 15, 2007 Managed to get rid all the errors apart from those from the SESSION .. I've also tried ini_set("session.use_only_cookies", 1); and that didn't work either .. Quote Link to comment https://forums.phpfreaks.com/topic/38636-server-adding-session-id-to-links-and-forms/#findComment-185612 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.