I am trying to implement a login page using ajax (jquery / angularjs) I am able to see the following in response headers using chrome-debug-toolbar
Set-Cookie:csrftoken=roaniD6RmDrzmd0X3rSkvIRvw2PYVRjm; expires=Thu, 02-Jul-2015 06:49:48 GMT; Max-Age=31449600; Path=/
Set-Cookie:sessionid=lns8nm8q24zgtsc6h1pupa3x4xbanf2r; expires=Thu, 17-Jul-2014 06:49:48 GMT; httponly; Max-Age=1209600; Path=/
But these cookies are not getting set in the browser. What should I do to set these or make these recieved cookies automatically set using angularjs
or jquery
You have probably left a new line between this headers and previous ones making them not correctly parsed. Use WebScarab proxy to inspect raw response header.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.