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
Explain garbage collection with python?
What do you mean by overriding methods?
How lists is differentiated from tuples?
What is __ pycache __?
How type casting is done in python?
How to do relative imports in python?
What is metadata in python?
Is print a function in python?
Is python faster than matlab?
Does python have long?
Mention at least 3-4 benefits of using python over the other scripting languages such as javascript.
how do substitute a pattern in a string using re module
What is proxy object in python?
Is there a switch or case statement in python? If not then what is the reason for the same?
What is nonetype error in python?