Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

logoff

Sorry if silly question - but I am getting a reduced user count.

When a web site is calling your api and it then has a logoff function should there be an api called and if so what should it do.

Comments

  • edited May 2022
    As far as the API is concerned it doesn't need to do anything unless you yourself are adding state management features. As far as the HTTP Framework is concerned, everything is stateless. Thus, once any given API has finished responding, nothing is left to "clear" or "logoff". I suppose you could create a "logoff" API in case you want to log this, but this is only effective if the person actually clicks a logoff link. If they close the browser then there isn't much to track.
  • Thanks, that's what I thought and knew it was a silly question.
Sign In or Register to comment.