set php session variable in javascript code example
Example 1: php session variables
<?php
session_start();
$_SESSION['var'];
?>
Example 2: how to store value in session using javascript in php
$(document).ready(function(){ $('.button').click(function(){var href = $(this).val();$.session.set("yoursessioname", "storevalue");}) });
alert($.session.get("yoursessioname"));