Trying to set a cookie within a python script

Steven D'Aprano steve-REMOVE-THIS at cybersource.com.au
Sun Aug 1 23:21:21 EDT 2010


On Sun, 01 Aug 2010 19:16:29 -0700, Νίκος wrote:

>>On 2 Αύγ, 03:52, Steven D'Aprano <steve-REMOVE-T... at cybersource.com.au>
>>wrote:
> 
>> Neither do I. What makes you think there is an error? What sort of
>> error? Do you get a core dump, an exception, or something else?
>>
>> Please report what you get, and what you expect, and how they are
>> different.
> 
> Hello Steven,
> 
> Here is the script when it tries to run from my remote web server:
> http://www.webville.gr/cgi-bin/koukos.py
> 
> Its seems the error is in this line of code, somwthing with time.
> 
> 19         cookie['visitor'] = ( 'nikos', time() + 60*60*24*365 )       
>   #this cookie will expire in an year


What error? Please copy and paste (do not retype) the entire error you 
get.


-- 
Steven




More information about the Python-list mailing list