Good example of user / application authentication using ExtJS 4 and MVC?

I am looking for a reliable example of user authentication in an ExtJS 4 MVC application. Do not get me wrong, I can easily create a login form that, after authenticating the user, destroys and then re-creates the viewport with the corresponding type of application in it, but I'm not sure if this is the best approach.

How do you rate application security with the idea that the application has only one look (the page never changes the URL of the page)?

+4
source share
3 answers

I will have login.php which has a basic login form. When logging in, check the user, register that the user is authenticated, and then redirect him to index.php, which will load your ExtJs web application. In the index.php file, download the ExtJs application only if you can authenticate the user.

I found this: http://phpeasystep.com/phptu/6.html

In the tutorial, they are redirected to login_success.php, this will be your index.php. You can see that it checks if the user is logged in.

// Check if session is not registered , redirect back to login page. // Put this code in first line of your index.php <? session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php"); } ?> 
+1
source

A similar question has been asked recently. See if your answers are satisfied. ExtJS and page authorization (server side)

+1
source

In our project, we authenticate the user on the server using ASP.NET membership providers. Do you want to use server authorization or something else?

+1
source

Source: https://habr.com/ru/post/1400506/


All Articles