Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if key exists in sesison python

# Check if key exists
if session.get("key") == None:
	# Do something if it doesnt exist
else:
	# Do something else if it does exist
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #key #exists #sesison #python
ADD COMMENT
Topic
Name
4+9 =