As a note, you can also place:
<?php
ini_set("session.use_trans_sid", "0");
// ... Insert messed up code here
ini_set("session.use_trans_sid", "1");
?>
And that will solve your problem...
-Sterling
Cynic wrote:
>
> this is a bug in PHP (several reports in bug db). either ask
> your ISP to disable trans-sid in your virtual host, or do it
> yourself in .htaccess
>
> At 15:52 13.1. 2001, Jamie Burns wrote the following:
> --------------------------------------------------------------
> >hey guys...
> >
> >my dumb isp has turned on ' --enable-trans-sid ' for all of the users on their
>webserver without telling them.
> >
> >while i am sure this feature has some benefits, it is breaking my code, big time.
>besides sticking the session value onto the end of every suspected server request, it
>is corrupting my javascript code in strange ways! Look at these examples...
> >
> >================================
> >
> >SPOT THE DIFFERENCE!
> >
> >ORIGINAL CODE:
> >
> > function MM_swapImgRestore() { //v3.0
> > var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
>x.src=x.oSrc;
> > }
> >
> > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
> >
> >CORRUPTED CODE:
> >
> > function MM_swapImgRestore() { //v3.0
> > var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x="a[i])&&x.oSrc;i++)"
>x.src="x.oSrc;"
> > }
> >
> > var d="document;" if(d.images){ if(!d.MM_p) d.MM_p="new" Array();
> >
> >================================
> >
> >see those speech marks around:
> >
> > )" x.src="x.oSrc;" and d="document;"
> >
> >they (and many more elsewhere in my code) are corrupting my javascript?!?!?!?!
> >
> >please help, this is a live system and my isp has forced my into an emergency
>situation.
> >
> >can i turn off transparent sid's through a run time or configuration file (i cannot
>recompile) ?
> >
> >anyone know how to stop this corruption?
> >
> >if it helps, i use the include() function to get and output the html template from
>my code.
> >
> >jamie burns.
> ------end of quote------
>
> ____________________________________________________________
> Cynic:
>
> A member of a group of ancient Greek philosophers who taught
> that virtue constitutes happiness and that self control is
> the essential part of virtue.
>
> [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]
--
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]