Skip to content

Commit

Permalink
on entry, save the session if its key is None
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Mar 11, 2021
1 parent 9d1aebd commit 10743b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numbas_lti/views/entry.py
Expand Up @@ -56,9 +56,9 @@ def lti_entry(request):
if request.method != 'POST':
return not_post(request)

if request.session.session_key is None:
request.session.save()
session_key = request.session.session_key
if session_key is None:
session_key = ''
return redirect(add_query_param(reverse('check_cookie_entry'),{'session_key':session_key}))

def do_lti_entry(request):
Expand Down

0 comments on commit 10743b0

Please sign in to comment.