Plugin with method that fires every time

Hello,

maybe a silly question, but is there a plugin type, which has a method, that will fire every time a user renders whatever page? Or event, or something similar.

Thank you 

Parents Reply
  • When a user logs in to our Community, we have an OnAfterAuthenticate event which creates a cookie, so the user is also logged in to another application running on the same domain.

    This cookie expires in a certain period of time. So we need a way to check if the cookie is still present and if the token in the cookie is valid. If not, create new cookie.

    It is solvable by creating a widget on every page (e.g. in footer) but it seems a little bit redundant to me if there would be a plugin which has a method, that can fire everytime user clicks.

Children