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 is the best free website to learn python?
How do you sort in python 3?
Write a program to find the max value from a list without using max()?
Do sheeps sleep?
What is r regex?
Is python an oops?
What is the zip() function in python?
How many keywords are there in python? And why should we know them?
Why is button parameter “command” executed when declared?
What are loops in python?
What is blob in python?
Why is python good for machine learning?