0

I am working on React.js project and I have added functionality for user login, where I am invalidating the access-token. The access-token is stored in cookie along with other user-details. I now want to remove the cookies altogether as the user logs out. I know like when we set the cookie we can add expiry time for it. Is there anyway we can add expiry time to the cookie that is already there in the browser

Ashish Tripathi
  • 115
  • 1
  • 6
  • Perhaps this will help https://stackoverflow.com/questions/13154552/how-can-i-set-a-cookie-with-expire-time details on setting the cookie and setting an expiration – FreddyNoNose Mar 06 '23 at 19:00

0 Answers0