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
What is the process of pickling and unpicling?
What is the difference between python append () and extend () functions?
How for loop will works in python?
How to pass indefinite number of arguments to any function?
What is a list in python?
What are class or static variables in python programming?
What is the best ide for python?
How do I start learning python?
How many items are in a list python?
What are the difference between python and java?
What does exit () do in python?
How do you create a database in python?
Why lambda forms in python does not have statements?
What does static pressure mean?
What is python tuples and how is it different from lists?