p;&emsp;&emsp;cookie = request.COOKIES["session_id"]<br>
&emsp;&emsp;&emsp;session = AF_session_id.objects.get(session_id=cookie)<br>
&emsp;&emsp;&emsp;if session :<br>
&emsp;&emsp;&emsp;&emsp;return render(request,"Lab_2021/A7_auth_failure/lab3.html", {"username":session.user,"success":True})<br>
&emsp;&emsp;except:<br>
&emsp;&emsp;&emsp;pass<br>
&emsp;&emsp;return render(request, "Lab_2021/A7_auth_failure/lab3.html")<br>
&emsp;elif request.method == "POST":<br>
&emsp;&emsp;token = str(uuid.uuid4())<br>
&e