How to handle expired session within the 4.x bootstrap modal?

Asked

Viewed 153 times

0

I have a system where the user chooses a date and time for scheduling, I increased the session time because the user needs to fill out a form with various information, it’s working beauty.

It turns out that after the session expires the browser keeps the page in view, when the user clicks appears the modal window bootstrap with the index page for the user to login again, this behavior of "re-login" is already expected.

The problem is that the login screen appears inside the modal bootstrap, I would like it to appear in the whole window otherwise confuses the user, because when it logs again it goes to the home page.

Is there a way to treat this or I’ll have to check which window is being opened in the modal?

  • Friend could explain better, I could not understand very well your problem.

  • When the user clicks a schedule button a popup (modal bootstrap) appears to him with the question Yes or No, if the session has expired inside this screen appears the initial page for him to login again, this is an internal treatment of the system... the only problem is that it appears inside the modal window... I would like to see the index page of the system outside the modal window, ie it is as if it had entered the system for the first time

  • 1

    You have two ways to solve this, the first and fastest is when the expiring session redirects it to login, so do not confuse the user. The second option is to store the screen he is accessing, so when the session expires you display the login modal and then redirect him to the page from where he left off.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.