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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -