Maybe is stupid question but is possible to check is user loged in with javascript...
How to check is user loged in with javascript? I try:
$(document).ready(function() {
$('#facebook').click(function(){
window.open(this.href, "myWindowName", "width=800, height=600");
return false;
setInterval(function() {
@if {{Auth::check()}};
alert('loged')
@else
alert('not loged')
@endif
}, 5000);
});
});
offcource this dont work... SO I need when I click on #facebook to check every 5 seconds is user logedin...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire