How to check a session is expired

Hi guys, as title, how to I can check a session ID is expired and I want set session id for long time, seem Moralis not auto delete session expired! therefore a user have very more session id combined with It. I must manual delete

1 Like

Hi @khiemtranvan

Moralis removes expired sessions automatically after 1-year inactivity.

Also take a look at https://docs.moralis.io/moralis-server/users/sessions#handling-invalid-session-token-error