I\'m aware that you can get session variables using request.session[\'variable_name\'], but there doesn\'t seem to be a way to grab the sessionid as a variable
request.session[\'variable_name\']
Use:
request.COOKIES['sessionid']