3
A doubt
I need to make an application that from time to time validates whether a session is valid through a bank query. This query must be done automatically, without the need for a user action, type a JS Location.Reload().
I thought about using a php socket to do this validation, but I don’t know if it’s the right one. Or change the whole idea and abandon php and use the nodejs that seems to be more useful for this feature.
Could someone explain to me the best way to develop this application? I only need a guide of what to use, and not of code or scripts ready, it is more the conceptual question itself and show the correct path to follow
How long will you do this validation? If it’s something like <= every 1 minute I would consider using sockets. Now if we say you want to validate every 10 minutes I would stay with ajax.
– BrunoRB
Exactly, 1 in 1 minute would be the ideal time, because I have to validate if the user has certain permissions still valid in the system, in case I do not have I will redirect it to a login page again.
– tkmtts