Does anybody knows how ext can directly use Session keys created in php ?
<?php $_SESSION["usrName"] = "me" ?>
i could use something like:
<script>sessionStorage.setItem("usrName", "<?php echo $_SESSION["usrName"] ?>");</srcipt>
but it would like to get directly the key.
Thanks evebody for helping.
Emmanuel
Most of the time you should send an Ajax call to the server to see if a session is alive. If not, direct them to the login form. If so, allow them to get to the app. When the Ajax call returns, you can cache the session details wherever you want but be cautious with security.