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 |
How is Multithreading achieved in Python?
What does %d do in python?
What happens when you execute python == python?
What does the list comprehension do?
Explain the use of decorators?
How do I start python on windows?
Can we use else with for loop in python?
What is @property in python?
Does python have a-main() method?
What does == mean?
Does range start at 0 python?
What is the key difference between a list and the tuple?