[PHP]COOKIE or coding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear: all

                  

                   That is very abnormality.

 

                   1.Open the url : http://127.0.0.1/showCookie.php

                            ShowCookie.php   code:

                                     <?php

                                               var_dump($_COOKIE);

                                     ?>

                            That's print: 

                                               [TCSPUBLICJAUTHM] => USER_ID=/zhW/2QXY/GUtIN7m4 dNQ==  

                  

                   2. The same window, input the string  "_javascript_:alert(document.cookie);" and enter, it's show :

                           

                  

                   3. now , I change the showCookie.php

                                     <?php

                                               echo "<script>alert('" . $_COOKIE['TCSPUBLICJAUTHM'] . "');</script>";

                                               var_dump($_COOKIE);

                                     ?>

                             That's print:

                           

                                          

                   I think the cookie in php being changed.  

                  Look forward to your help

 

 


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux