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 does echo do python?
What do you mean by ‘suites’ in python?
What is end in python?
What is python interpreter?
What are list comprehensions in Python?
What is the difference between range & xrange? Explain?
What is the use of the break statement?
Which command do you use to exit help window or help command prompt?
Is python a single inheritance?
Is python or r more useful?
Does python do until loop?
Does python support interfaces like java does?