|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Generating cookie
I'm having trouble creating a cookie, using Python's Cookie module.
Here is my code: Code:
import Cookie cookie=Cookie.Cookie() cookie["name"]="Python" cookie["name"]["expires"]=3600 cookie["name"]["version"]=1 print cookie Now when I got to my cookie folder I dont see the cookie I just created. Does cookies in Python must be created within a Python-CGI script??? Last edited by Blaktyger : December 7th, 2002 at 05:45 PM. |
|
#2
|
|||
|
|||
|
hello, I'm not familiar with the cookie module at all but try changing your
cookie = Cookie.Cookie() to cookie = Cookie.SimpleCookie() I know this is wrong but like I said I don't know anything about the Cookie module and you might want to give that a shot. Last edited by jimmy2k1 : December 7th, 2002 at 08:33 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Generating cookie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|