Angular web portal session state management

Hello,

I need to customize the session for the api portal so that the user will get timed out sooner than the build-in session allows. For this I have tried to configure the sessionState inside the web.config folder but the session did not change. Is there another way I can manage session for the api portal?

Thank you.