views:

14

answers:

0

I'm using the token interceptor on my application, but I have encountered a problem with two case scenarios:

1 - When I submit the form using Ajax, the first time everything works perfectly, but the second time, the server sees that as a repeated token, which is okay, but I would like to know if I can avoid that without refreshing the page. Is there any way to just get a new token and add it to the response jon object?

2 - If I have a form but I open multiple tabs with that form. For example, I have a list of users and I can send a message to the user when viewing their profile. If I open 3 tabs, one for a different user profile, I can only send one of them (the last one I suppose). This behaviour is correct also the way token works, but I would like to know if there is a way to tweak that behaviour and adapt it to what I need, because I think that opening multiple tabs is a very common way of working, and I need that to work.