Answer Posted / chaitanya
A cookie is an arbitrary string of characters that uniquely identify a session.
Each cookie is specific to one Web site and one user.
The Cookie module defines classes for abstracting the concept of cookies. It contains following method to creates cookie
Cookie.SimpleCookie([input])
Cookie.SerialCookie([input]
Cookie.SmartCookie([input])
for instance following code creates a new cookie ck-
import Cookie
ck= Cookie.SimpleCookie ( x )
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
So, then, what is the global keyword?
What is the difference between while and for loop?
How can you declare multiple assignments in one statement?
Specify the differences between pyramid, django, and flask.
What does defined by whitespace in python?
Can you tell the difference between break and continue in python?
How to get a random number in python?
What is a CGI script in Python?
What does ord () do in python?
Python documentation is called?
What’s your preferred text editor?
What is setup cfg?
What does float () do in python?
Optionally, what statements can you put under a try-except block?
Explain python variable scope error?