Python CGI Cookies...I just don't get it...

Status
Not open for further replies.

BobTheFourth

Ars Praefectus
5,478
Subscriptor
Maybe I'm just dumb, but I just don't understand the workings of the python cookie module. I want to use it to store a user's name and password while they're logged in to a website I'm designing. So, I need to know how to do the following:

1. Set the cookie (I think I understand this part, but go ahead and explain it anyway as I could be wrong).

2. Check if a user has the cookie.

3. Read the contents of the cookie if it exists.

The module index page on the Python website doesn't seem to explain how to actually use the module, and every example I've found is either totally uncommented or commented very sparsely.

Thanks,

c|i
 
Status
Not open for further replies.