NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 40 min
Run the password reset and logout cases on the shop, read each answer against its rule, and separate a correct uniform reply from a session that outlives sign out.
At 10:02:36 on Tuesday 2027-08-03 the shop API answered GET /api/v1/me with status 200 and the account of Kit. The request carried a session cookie that had been saved before Kit signed out, and the sign out was already 46 seconds old. The logout response, status 204 at 10:01:50, had told the browser to throw its copy of the cookie away. A request that presented the saved copy was still treated as Kit.
Forty minutes before that, a request for a password reset on an address with no account had also answered 200, with a body that reads as though a message may be on its way. Both answers look odd to somebody new to the shop. One of them breaks a written rule and one of them keeps it, and the status code is the same in both. The rule decides, so the rule has to be open on your screen before the request goes out.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in