Skip to content

Instantly share code, notes, and snippets.

@nickjs
Created September 10, 2008 05:57
Show Gist options
  • Save nickjs/9831 to your computer and use it in GitHub Desktop.
Save nickjs/9831 to your computer and use it in GitHub Desktop.
var cookie = [[CPCookie alloc] initWithName:'le_auth'];
var token = data.user.auth_token;
var myDate=new Date();
[cookie setValue:token expires:myDate domain:'localhost'];
console.log(token);
console.log([cookie value]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment