Describe how to implement Cookies for Web python.
Answer / 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 |
Describe how to implement Cookies for Web python.
How will you get a 10 digit zero-padded number from an original number?
What is dict when we have to use ?
where can I get the study material for python
What is argument in a function?
What are the built-in data-types in python?
Is python a shell script?
Explain me what are the key features of python?
Write a program to find the duplicates in a list?
Is python better than ruby?
Which is faster python or java?
What is the difference between and ?