<?php
echo '<script>
var p1 = "success";
</script>';
$session = "<script>document.writeln(p1);</script>";
// echo $session;
$_SESSION["adcode"] = $session;
if(isset($_SESSION["adcode"])) echo 'True';
else
echo 'False';
?>
PD9waHAKc2Vzc2lvbl9zdGFydCgpOwplY2hvICc8c2NyaXB0Pgp2YXIgcDEgPSAic3VjY2VzcyI7Cjwvc2NyaXB0Pic7Cgokc2Vzc2lvbiA9ICI8c2NyaXB0PmRvY3VtZW50LndyaXRlbG4ocDEpOzwvc2NyaXB0PiI7CgovLyBlY2hvICRzZXNzaW9uOwoKJF9TRVNTSU9OWyJhZGNvZGUiXSA9ICRzZXNzaW9uOwoKaWYoaXNzZXQoJF9TRVNTSU9OWyJhZGNvZGUiXSkpCgllY2hvICdUcnVlJzsKZWxzZQoJZWNobyAnRmFsc2UnOwoKPz4=