fork download
  1. <?php
  2. echo '<script>
  3. var p1 = "success";
  4. </script>';
  5.  
  6. $session = "<script>document.writeln(p1);</script>";
  7.  
  8. // echo $session;
  9.  
  10. $_SESSION["adcode"] = $session;
  11.  
  12. if(isset($_SESSION["adcode"]))
  13. echo 'True';
  14. else
  15. echo 'False';
  16.  
  17. ?>
Success #stdin #stdout 0.02s 23492KB
stdin
Standard input is empty
stdout
<script>
var p1 = "success";
</script>True