title: Get session ID for a django site in javascript
body: <p>How can I get the django session ID that is ultimately stored in the cookie using javascript?</p>
  
  <p>The reason I need to get that ID is that I'm doing everything from a REST API, including authentication. So, the guys developing the mobile app are using ionic and they want to make a request to the API to get that session ID - and then use it in future requests. Any advice?</p>