<?php
session_start();
$_SESSION["kayit"]=$_POST['productId'];
?>
Kullanırkende

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