stores cookie in sharedpreferences