Setting up the cookie:
$.cookie("userAgeValue", "userUnder21", { path: '/' });
Checking if value = "userUnder21":
if($.cookie('userAgeValue') == 'userUnder21') { //do something;}