Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 898 Bytes

SESSION_COOKIE.md

File metadata and controls

21 lines (16 loc) · 898 Bytes

Finding your Session Cookie

Some commands might require an authenticated connection with AoC servers to work. To do so, a Session Cookie is required.

Finding your Session Cookie as is easy as:

  1. Open a tab at https://adventofcode.com/ and login;
  2. Open DevTools from your browser (Usually just press F12)
  3. In the Network tab, find and click in a request to adventofcode.com. If it's not there, try reloading the page. session_cookie1
  4. The Session Cookie is located in the Request Headers section in the Cookie information; session_cookie2
  5. Copy the cookie and create the AOC_SESSION_COOKIE environment variable for your shell;
export AOC_SESSION_COOKIE="<my_current_cookie>"
  1. Happy solving! 🎅🎄❄️☃️🎁🦌