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 speech_recognition? Does this ship with python by default?
How does the python version numbering scheme work?
Why is used in python?
What are the best sites to learn python?
What is difference between input and raw_input in python?
What is sphinx python?
Can we use else with for loop in python?
Write a code to display the current time.
How to change a string in list ?
Difference between append vs. Extend list methods in python
What is __ pycache __?
How do I reverse the range of a python order?