PHP and IE6sp1 and Sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bytron_php
Forum Newbie
Posts: 1
Joined: Mon Dec 02, 2002 9:38 am

PHP and IE6sp1 and Sessions

Post by bytron_php »

Hello there,

I decided to download IE6sp1. Since then our web site just does work properly. I have read all the information about IE6sp1 Cookies and I still can't get the site to work like it did before!

The problem resides in the way the sessions are handled. I have enable-trans-sid switched on but in some cases the SID is not posted to the next page. I have a apache webserver with a virtual directory, which is SSL and the normal apache htdocs root, without ssl. The code I am running is:

Code: Select all

<?php 
           if ($var1 != 11) 
           &#123; 
                      if ($var2 == 10) 
                      echo "HELLO"; 
?> 
           <html> 
                      <body> 
                                 <a href='test1.php?var1=11'>click here</a> 
                      </body> 
           </html> 
<?php 
           &#125; 
           else 
           &#123; 
                      if ($var1 == 11) 
                      &#123; 
                                 $var2 = 10; 
                                 session_register("var2"); 
?> 

                      <html> 
                                 <body> 
                                            <script language="javascript1.2"> 
                                                       document.location = "test1.php?var1=10"; 
                                            </script> 
                                 </body> 
                      </html> 
<?php 
                      &#125; 
           &#125; 
?>
On the non ssl site the session id is passed on the document.location line. On the ssl site the session id is never passed. If I use an href to move between the pages it works on both sites.
This problem has only come about when using IE6sp1.
Has Microsoft ruined may page or an I doing something wrong?

Please help!!

Thanks Chris Mitchell
Post Reply