Created
September 10, 2008 05:57
-
-
Save nickjs/9831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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