Cookie gets changed when hit comes from a referrer

Ned Batchelder ned at nedbatchelder.com
Tue Oct 8 19:57:33 EDT 2013


On 10/8/13 6:52 PM, Νίκος Αλεξόπουλος wrote:
> Στις 8/10/2013 10:29 μμ, ο/η Denis McMahon έγραψε:
>> On Tue, 08 Oct 2013 19:04:37 +0300, Νίκος Αλεξόπουλος wrote:
>>
>>> Can you help me with this particuler problem please?
>>
>> Unfortunately I can't, because I am unable to reproduce the problem you
>> describe.
>>
>> When I load my test page in the browser, then replace it with something
>> else by entering an address in the address bar and pressing return, then
>> use the back link followed by the reload one, I am back at my test page
>> with the original cookie value.
>>
>> Of course, this is using my cookie etc code and mechanisms, and not
>> yours ....
>>
>> Now, either it's an issue in your python implementation of cookie
>> handling which isn't happening in my implementation, or it's 
>> something to
>> do with the way that your system passes data around (cgi) that doesn't
>> happen in mine (mod_wsgi), or it's happening in the browser you're
>> testing in, but not in my browser.
>>
>> Have you checked the cookie jar in the browser to see what value the
>> cookie has? Is that the value you think it should have? Note that
>> checking the cookie jar is a browser topic, not a python topic, so if 
>> you
>> don't know how to do that you're going to have to find the right 
>> place to
>> ask, WHICH IS NOT HERE!
>>
>> Ideally you need to check what the server thinks it's setting the 
>> cooking
>> to, what the browser thinks it received as the cookie, and what the
>> server gets back afterwards to work out where the error is happening.
>
> Is there something i can try to isolate the problem and make it work?
> By whole counters project is based on cookie handling now....
>
>

Nikos, as a few people have mentioned already, this is no longer a 
Python question.  You need to find other avenues of support.

--Ned.



More information about the Python-list mailing list