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 do you mean by python being an “interpreted language”?
What does append () do in python?
Do you need python to run a python program?
Different file processing modes supported by python?
What is slice notation in python to access elements in an iterator?
Is dictionary faster than list python?
What is a generator in python?
How many variables are in python?
What does all do in python?
What is python interpreter?
What is pack in python?
What is numpy? Is it better than a list?
How do you debug a program in python? Answer in brief.
What are the principal differences between the lambda and def?
What does ‘#’ symbol do in python?