Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ViewBag.Title = "VerificaChat";
- string json = "{"logado":"true"}";
- Response.Clear();
- Response.ContentType = "application/json; charset=utf-8";
- Response.Write(json);
- Response.End();
- <script>
- $(document).ready(function () {
- $.get("http://localhost:3641/Home/VerificaChat", function (data, status) {
- alert("Data: " + data + "nStatus: " + status);
- if (data == ".PermissionCookie") {
- return true;
- } else {
- alert("Oooops! Você não tem permissão!");
- window.location.replace("/Index/Autenticacao")
- return false;
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement