Cookies Cookies
English
The mission is in Reviewing Mode. You can't see the solutions Leader Board, but you can see other user solutions through the Random Review after you solve the mission.

This is a pretty technical mission.

You have a raw HTTP cookie. You mission is to extract value by specific name.

Input: Two arguments. Both are string. One is raw cookies, the second one is cookie-name we are looking for.

Output: String. Extracted value

Example:

get_cookie('theme=light; sessionToken=abc123', 'theme') == 'light'
get_cookie('_ga=GA1.2.447610749.1465220820; _gat=1; ffo=true', 'ffo') == 'true'