javascript - session set in jquery cant able to get in php -


index.js file

sessionstorage.setitem('name', 'xxxx'); 

login.php

<?php echo $_session['name'] ?> 

in index.html page name , store in session using javascript

after page navigate login.php in cant able session variable

pls me solve issue.

in index.html file create ajax request , send php file , in php file set session, in login.php file can session easily.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -