I have a PHP code like this to create session:
Session::toast('sessionname', 'sessionvalue');
and than for calling session like this:
if (Session::tersedia('sessionname')) {
echo "<div class='notif-merah animNotif'>"
.Session::toast('sessionname')
."</div>";
}
How to create session with JavaScript?