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 does == mean in python?
What are special methods in python and how to implement?
Is python pure object oriented programming ?
What is a python egg?
What are its benefits of flask?
What is os module?
Why is python used?
What is the encapsulation?
How to count the occurrences of a list item?
Is there any equivalent to scanf() or sscanf()?
Is python good for microservices?
What is the other way of checking truthiness?
As python is more suitable for the server-side application, it is very important to have threading implemented in your server code. How can you achieve that in python?
How to split a string into a list?
Is __ init __ necessary in python?