How can I get the user id from session in javascript?
I was using this:
$( document ).ready(function() {
var sessionUserId = '<?php $_SESSION['user_id'] ?>';
alert (sessionUserId);
});
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
How can I get the user id from session in javascript?
I was using this:
$( document ).ready(function() {
var sessionUserId = '<?php $_SESSION['user_id'] ?>';
alert (sessionUserId);
});