Trying to set a cookie within a python script

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Wed Aug 4 11:33:38 CEST 2010


On Tue, 03 Aug 2010 20:08:46 -0700, Νίκος wrote:

> i tried in IDLE enviroment as well and for some reason even with a
> single number isnated of time() function the cookie is never set,
> because the print of
> 
>>>>print os.environ.get('HTTP_COOKIE')
> 
> result to
> 
> None


What happens if you open up a NEW xterm and do this?

echo $HTTP_COOKIE


Or, to put it another way... are you sure that the environment variable 
is actually being set?


-- 
Steven



More information about the Python-list mailing list