Guest User

Untitled

a guest
Feb 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var cookie = [[CPCookie alloc] initWithName:'le_auth'];
  2.  
  3. var token = data.user.auth_token;
  4. var myDate=new Date();
  5.  
  6. [cookie setValue:token expires:myDate domain:'localhost'];
  7. console.log(token);
  8. console.log([cookie value]);
Add Comment
Please, Sign In to add comment