mardi 24 janvier 2017

Is it safe to pass data from php to js?

I save my logged in ID in the php session of course. Is it safe and professional to pass the id from php to js in my sorce code as following :

var myLoggedInId = "<?php echo $theLoggedInIdFromSession; ?>";




Aucun commentaire:

Enregistrer un commentaire