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 abnormal termination?
What are the components of python memory manager?
What are tuples in python?
What is yaml file in python?
Does pandas recognize dates when importing data?
What is numpy in python?
What is range() in python?
What is unlink in python?
How do you achieve web scraping in python?
Which databases are supported by python?
Write a program to draw a board ex: 3by3 or 4by4 etc?
What is python enumerate?
What happened if we call a key that is not present in dictionary and how to tackle that kind of error ?
How do I make python scripts executable?
Write a program to produce fibonacci series in python.