<?php session_start(); $_SESSION["kayit"]=$_POST['productId']; ?>
<?php session_start(); $bas=$_SESSION["kayit"]; echo $bas; ?>