If it sessionhas a key with a value "name"in it, it returns the value associated with this key (which may be False), otherwise (if there is no key with the name "name"), it returns False.
session - - , get Python . , get :
if "name" in request.session:
result = request.session["name"]
else:
result = False
if result: