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 |
What super does in python?
What is sockets? Explain.
Why do lambda forms not have statements?
Explain about zip() in python?
What is dictionary in python?
What is web scraping?
Explain important characteristics of python objects?
What is input () in python?
What happens when a function doesn’t have a return statement? Is this valid?
How to prevent blocking in content() method of socket?
How do you split a list into evenly sized chunks in python?
How do you use enums in Python?