Session Storage
Managing User Sessions with Separate Cookies
π¨βπΌ Just like with the toast messages, we're going to want to use the
createCookieSessionStorage API
to create a session storage object that we can use to store and retrieve the
userId.We'll make this a different one from the toast messages so that we can keep them
separate. We'll call this one simply
sessionStorage.π¨ This session should have a very similar configuration to the toast messages
session. The only difference is the
name should be 'en_session' to avoid
clashing with the toast messages session.Make sure you export the
sessionStorage object from this module.There's not a great way to test that you've got this done correctly until the
next step, so you may check the diff to
make sure you got it right before moving on.