Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57498 > unrolled thread
| Started by | Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> |
|---|---|
| First post | 2013-10-25 10:22 +0300 |
| Last post | 2013-10-26 02:28 +1100 |
| Articles | 20 on this page of 32 — 11 participants |
Back to article view | Back to comp.lang.python
Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 10:22 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 18:32 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 11:25 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 19:33 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 11:46 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 10:03 +0100
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 13:30 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 21:51 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 14:46 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 23:11 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 15:20 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 23:35 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 15:54 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 15:21 +0100
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 18:04 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 16:12 +0100
Re: Cookie aint retrieving when visiting happens from a backlink. Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-26 16:05 +0200
Re: Cookie aint retrieving when visiting happens from a backlink. Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-25 15:17 +0000
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 18:29 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-26 02:34 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Joel Goldstick <joel.goldstick@gmail.com> - 2013-10-25 11:36 -0400
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 18:49 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Steve Simmons <square.steve@gmail.com> - 2013-10-25 17:28 +0100
Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 19:17 +0100
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-26 11:19 +1100
Re: Cookie aint retrieving when visiting happens from a backlink. Piet van Oostrum <piet@vanoostrum.org> - 2013-10-26 21:17 -0400
Re: Cookie aint retrieving when visiting happens from a backlink. Roy Smith <roy@panix.com> - 2013-10-26 21:34 -0400
Re: Cookie aint retrieving when visiting happens from a backlink. Piet van Oostrum <piet@vanoostrum.org> - 2013-10-26 22:24 -0400
Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-27 08:45 +0200
Re: Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 11:26 +0300
Re: Cookie aint retrieving when visiting happens from a backlink. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-25 15:13 +0000
Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-26 02:28 +1100
Page 1 of 2 [1] 2 Next page →
| From | Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 10:22 +0300 |
| Subject | Cookie aint retrieving when visiting happens from a backlink. |
| Message-ID | <l4d66o$4bd$1@dont-email.me> |
Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] ) cookieID = cookie['name'].value except: cookieID = 'visitor' [/CODE] It works as expected except form the fact from when the visitor enters my webpage(superhost.gr) by clicking a backlink of another webpage. Then even if the cookie exists in his browser for some reason the try fails and except take actions. Can somebody explain why this is happening? You can see this action yourself by hitting: 1. superhost.gr as a direct hit 2. by clicking superhost.gr's backlink from ypsilandio.gr/mythosweb.gr You will see than in 2nd occasion another ebtry will appear in the database here: http://superhost.gr/?show=log&page=index.html
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-25 18:32 +1100 |
| Message-ID | <mailman.1501.1382686719.18130.python-list@python.org> |
| In reply to | #57498 |
On Fri, Oct 25, 2013 at 6:22 PM, Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> wrote: > Can somebody explain why this is happening? > > You can see this action yourself by hitting: > > 1. superhost.gr as a direct hit > 2. by clicking superhost.gr's backlink from ypsilandio.gr/mythosweb.gr > > You will see than in 2nd occasion another ebtry will appear in the database > here: > > http://superhost.gr/?show=log&page=index.html Issue closed, unable to replicate. Either something you're doing is different from what you're describing, or your browser is behaving differently. Look at the Set-Cookie headers coming back, and the subsequent Cookie headers in requests, and see what you can learn. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 11:25 +0300 |
| Message-ID | <l4d9tf$lro$1@dont-email.me> |
| In reply to | #57500 |
Στις 25/10/2013 10:32 πμ, ο/η Chris Angelico έγραψε: > On Fri, Oct 25, 2013 at 6:22 PM, Νίκος Αλεξόπουλος > <nikos.gr33k@gmail.com> wrote: >> Can somebody explain why this is happening? >> >> You can see this action yourself by hitting: >> >> 1. superhost.gr as a direct hit >> 2. by clicking superhost.gr's backlink from ypsilandio.gr/mythosweb.gr >> >> You will see than in 2nd occasion another ebtry will appear in the database >> here: >> >> http://superhost.gr/?show=log&page=index.html > > Issue closed, unable to replicate. Either something you're doing is > different from what you're describing, or your browser is behaving > differently. Look at the Set-Cookie headers coming back, and the > subsequent Cookie headers in requests, and see what you can learn. There is no set of cookie returned back when visitor comes from a referer. Isn't this strange? No matter if you visit a webpage as a direct hit or via a referer the cookie on the visitor's browser should have been present. But it can only can be found and retrieved as a direct hit and _not_ from a referrer backlink. But thw browser is the same... -- What is now proved was at first only imagined! & WebHost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-25 19:33 +1100 |
| Message-ID | <mailman.1503.1382690002.18130.python-list@python.org> |
| In reply to | #57504 |
On Fri, Oct 25, 2013 at 7:25 PM, Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> wrote: > Isn't this strange? > No matter if you visit a webpage as a direct hit or via a referer the cookie > on the visitor's browser should have been present. > > But it can only can be found and retrieved as a direct hit and _not_ from a > referrer backlink. Trace your logs. You've been told this before; are you sure the request is even getting to your server? Fundamentally, you're caring about things that it's a LOT easier to not care about. Just let things happen, and don't try to track people so much. Not only will some people object to it (are you, for instance, complying with EU regulations about cookies?), but you're going to keep running into situations where you just *can't* track people, no matter how hard you try. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 11:46 +0300 |
| Message-ID | <l4db5l$r5d$1@dont-email.me> |
| In reply to | #57506 |
Στις 25/10/2013 11:33 πμ, ο/η Chris Angelico έγραψε: > On Fri, Oct 25, 2013 at 7:25 PM, Νίκος Αλεξόπουλος > <nikos.gr33k@gmail.com> wrote: >> Isn't this strange? >> No matter if you visit a webpage as a direct hit or via a referer the cookie >> on the visitor's browser should have been present. >> >> But it can only can be found and retrieved as a direct hit and _not_ from a >> referrer backlink. > > Trace your logs. You've been told this before; are you sure the > request is even getting to your server? Please be more detailed to what you want me to check. > Fundamentally, you're caring about things that it's a LOT easier to > not care about. Just let things happen, and don't try to track people > so much. Not only will some people object to it (are you, for > instance, complying with EU regulations about cookies?), but you're > going to keep running into situations where you just *can't* track > people, no matter how hard you try. If an expert want to hide from my tracking of course he can use a proxy, or a TOR service, or incognito Chrome mode or whatever to bypass cookie tracking. But the usual visitors wont even know these things and their browser will accept cookies. I do this not as a way to track everybody, but to learn handling cookies, database storing of cookies ans stuff like that. But i cannot overcome this weird baclink referring visits that tend to ignore cookies stored in the browser. I need an explanation for that because it screwns my visitors databases.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-10-25 10:03 +0100 |
| Message-ID | <mailman.1504.1382691850.18130.python-list@python.org> |
| In reply to | #57507 |
On 25/10/2013 09:46, Νίκος Αλεξόπουλος wrote: > Στις 25/10/2013 11:33 πμ, ο/η Chris Angelico έγραψε: >> Trace your logs. You've been told this before; are you sure the >> request is even getting to your server? > > Please be more detailed to what you want me to check. > Please send Chris a suitable cheque, or you could even design, build and test a site like paypal and use that to pay him, and I'm sure that he'll be happy to oblige. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 13:30 +0300 |
| Message-ID | <l4dh8k$o7i$1@dont-email.me> |
| In reply to | #57507 |
Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: > Trace your logs. You've been told this before; are you sure the > request is even getting to your server? what do you mean by that Chris? please be more specific. -- What is now proved was at first only imagined! & WebHost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-25 21:51 +1100 |
| Message-ID | <mailman.1506.1382698278.18130.python-list@python.org> |
| In reply to | #57512 |
On Fri, Oct 25, 2013 at 9:30 PM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: > Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: > >> Trace your logs. You've been told this before; are you sure the >> request is even getting to your server? > > > what do you mean by that Chris? please be more specific. These are not Python questions. Google is your friend. Look at the web development/debugging tools you have available, look into TCP tracing (tcpdump, etc), look at your web server's logs, look at physics, look at all you can think of. [1] That is as specific as I am going to be on this list. ChrisA [1] Don't cry, or you won't be good for anything when the feast comes!
[toc] | [prev] | [next] | [standalone]
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 14:46 +0300 |
| Message-ID | <l4dlmm$fc9$1@dont-email.me> |
| In reply to | #57513 |
Στις 25/10/2013 1:51 μμ, ο/η Chris Angelico έγραψε: > On Fri, Oct 25, 2013 at 9:30 PM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: >> Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: >> >>> Trace your logs. You've been told this before; are you sure the >>> request is even getting to your server? >> >> >> what do you mean by that Chris? please be more specific. > > These are not Python questions. Google is your friend. Look at the web > development/debugging tools you have available, look into TCP tracing > (tcpdump, etc), look at your web server's logs, look at physics, look > at all you can think of. [1] That is as specific as I am going to be > on this list. > > ChrisA > > [1] Don't cry, or you won't be good for anything when the feast comes! > Can you reproduce this simple problem on your side to see if it behaves the same way as in me? -- What is now proved was at first only imagined! & WebHost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-25 23:11 +1100 |
| Message-ID | <mailman.1513.1382703109.18130.python-list@python.org> |
| In reply to | #57517 |
On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: > Can you reproduce this simple problem on your side to see if it behaves the > same way as in me? Like I said at the beginning, no it doesn't. Go forth and wield the Google. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 15:20 +0300 |
| Message-ID | <l4dnnc$qmk$1@dont-email.me> |
| In reply to | #57519 |
Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: > On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: >> Can you reproduce this simple problem on your side to see if it behaves the >> same way as in me? > > Like I said at the beginning, no it doesn't. Go forth and wield the Google. > > ChrisA > Answer me in detail an stop pointing me at vague google searchs. -- What is now proved was at first only imagined! & WebHost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-25 23:35 +1100 |
| Message-ID | <mailman.1514.1382704567.18130.python-list@python.org> |
| In reply to | #57520 |
On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: > Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >> >> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k <nikos.gr33k@gmail.com> >> wrote: >>> >>> Can you reproduce this simple problem on your side to see if it behaves >>> the >>> same way as in me? >> >> >> Like I said at the beginning, no it doesn't. Go forth and wield the >> Google. >> >> ChrisA >> > Answer me in detail an stop pointing me at vague google searchs. No. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 15:54 +0300 |
| Message-ID | <l4dple$6mf$1@dont-email.me> |
| In reply to | #57521 |
Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: > On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: >> Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >>> >>> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k <nikos.gr33k@gmail.com> >>> wrote: >>>> >>>> Can you reproduce this simple problem on your side to see if it behaves >>>> the >>>> same way as in me? >>> >>> >>> Like I said at the beginning, no it doesn't. Go forth and wield the >>> Google. >>> >>> ChrisA >>> >> Answer me in detail an stop pointing me at vague google searchs. > > No. > > ChrisA > Yes, don't be lazy. -- What is now proved was at first only imagined! & WebHost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-10-25 15:21 +0100 |
| Message-ID | <mailman.1519.1382711110.18130.python-list@python.org> |
| In reply to | #57522 |
On 25/10/2013 13:54, Nick the Gr33k wrote: > Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: >> On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k >> <nikos.gr33k@gmail.com> wrote: >>> Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >>>> >>>> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k >>>> <nikos.gr33k@gmail.com> >>>> wrote: >>>>> >>>>> Can you reproduce this simple problem on your side to see if it >>>>> behaves >>>>> the >>>>> same way as in me? >>>> >>>> >>>> Like I said at the beginning, no it doesn't. Go forth and wield the >>>> Google. >>>> >>>> ChrisA >>>> >>> Answer me in detail an stop pointing me at vague google searchs. >> >> No. >> >> ChrisA >> > Yes, don't be lazy. > I'll be blunt and to the point. Fuck off. Oh, sorry for my lack of manners, fuck off please. Now have you finally got the message? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 18:04 +0300 |
| Message-ID | <l4e19i$muc$1@dont-email.me> |
| In reply to | #57526 |
Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε: > On 25/10/2013 13:54, Nick the Gr33k wrote: >> Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: >>> On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k >>> <nikos.gr33k@gmail.com> wrote: >>>> Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >>>>> >>>>> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k >>>>> <nikos.gr33k@gmail.com> >>>>> wrote: >>>>>> >>>>>> Can you reproduce this simple problem on your side to see if it >>>>>> behaves >>>>>> the >>>>>> same way as in me? >>>>> >>>>> >>>>> Like I said at the beginning, no it doesn't. Go forth and wield the >>>>> Google. >>>>> >>>>> ChrisA >>>>> >>>> Answer me in detail an stop pointing me at vague google searchs. >>> >>> No. >>> >>> ChrisA >>> >> Yes, don't be lazy. >> > > I'll be blunt and to the point. Fuck off. Oh, sorry for my lack of > manners, fuck off please. Now have you finally got the message? > After you please, i insist! -- What is now proved was at first only imagined! & WebHost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-10-25 16:12 +0100 |
| Message-ID | <mailman.1521.1382713968.18130.python-list@python.org> |
| In reply to | #57528 |
On 25/10/2013 16:04, Nick the Gr33k wrote: > Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε: >> On 25/10/2013 13:54, Nick the Gr33k wrote: >>> Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: >>>> On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k >>>> <nikos.gr33k@gmail.com> wrote: >>>>> Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >>>>>> >>>>>> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k >>>>>> <nikos.gr33k@gmail.com> >>>>>> wrote: >>>>>>> >>>>>>> Can you reproduce this simple problem on your side to see if it >>>>>>> behaves >>>>>>> the >>>>>>> same way as in me? >>>>>> >>>>>> >>>>>> Like I said at the beginning, no it doesn't. Go forth and wield the >>>>>> Google. >>>>>> >>>>>> ChrisA >>>>>> >>>>> Answer me in detail an stop pointing me at vague google searchs. >>>> >>>> No. >>>> >>>> ChrisA >>>> >>> Yes, don't be lazy. >>> >> >> I'll be blunt and to the point. Fuck off. Oh, sorry for my lack of >> manners, fuck off please. Now have you finally got the message? >> > > After you please, i insist! > Please send your CV to the Greek government, I'm sure they could be with a new chief economist, a position that is obviously far better suited to you than your current position. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
|---|---|
| Date | 2013-10-26 16:05 +0200 |
| Message-ID | <mailman.1596.1382815010.18130.python-list@python.org> |
| In reply to | #57528 |
Op 25-10-13 17:04, Nick the Gr33k schreef: > Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε: >> On 25/10/2013 13:54, Nick the Gr33k wrote: >>> Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: >>>> On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k >>>> <nikos.gr33k@gmail.com> wrote: >>>>> Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >>>>>> >>>>>> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k >>>>>> <nikos.gr33k@gmail.com> >>>>>> wrote: >>>>>>> >>>>>>> Can you reproduce this simple problem on your side to see if it >>>>>>> behaves >>>>>>> the >>>>>>> same way as in me? >>>>>> >>>>>> >>>>>> Like I said at the beginning, no it doesn't. Go forth and wield the >>>>>> Google. >>>>>> >>>>>> ChrisA >>>>>> >>>>> Answer me in detail an stop pointing me at vague google searchs. >>>> >>>> No. >>>> >>>> ChrisA >>>> >>> Yes, don't be lazy. >>> >> >> I'll be blunt and to the point. Fuck off. Oh, sorry for my lack of >> manners, fuck off please. Now have you finally got the message? >> > > After you please, i insist! > Yes now you insist. But when someone later will point out how you insist to be helped, you will blatantly deny you do. -- Antoon Pardon
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2013-10-25 15:17 +0000 |
| Message-ID | <l4e21o$99a$3@dont-email.me> |
| In reply to | #57522 |
On Fri, 25 Oct 2013 15:54:05 +0300, Nick the Gr33k wrote: >>>>> Can you reproduce this simple problem on your side to see if it >>>>> behaves the same way as in me? >>>> Like I said at the beginning, no it doesn't. Go forth and wield the >>>> Google. >>> Answer me in detail an stop pointing me at vague google searchs. >> No. > Yes, don't be lazy. You're the one who is too lazy to learn enough about tcp / ip and http to understand what is happening with your cookie problem, and you are calling other people lazy for not solving it. I confirmed in an earlier thread that the problem you describe does not happen on my system with my python cookie handling. Chris has confirmed that it does not happen on his system, so it must be something specific to what you are doing. The obvious step is to use a tool like wireshark to capture the tcp/ip exchanges between the server and the client, to analyse those exchanges, and to see exactly what is being sent in each direction. This is how you debug such problems. When you know what data is actually being transferred, then you can go back to software and work out why the data that you expect to be transferred isn't being transferred. Using wireshark is beyond the scope of this newsgroup, as is analysing the contents of tcp/ip packets and http requests and responses. If the client is not sending the expected cookie to the server, then the most likely problem is that the client does not associate that particular cookie with the server url. If this is the case, then the problem is that when you initially sent the cookie to the client, you did not define the server url in the cookie in a manner that would cause the client to associate the cookie with the url in the subsequent request. This is not a python problem, it's an http cookies problem, and the answer lies in the cookie you are creating. Or you can extract the cookie from the cookie jar in the client (again not a python issue, so don't ask how to do it here) and look for an http forum where you can ask why cookie x isn't applied to server y. This is not that forum. Oh look, that's almost the same advice I gave you about 10 days ago! So you've spent 10 days ignoring my advice, and then you call Chris lazy. -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-10-25 18:29 +0300 |
| Message-ID | <l4e2p0$cv$1@dont-email.me> |
| In reply to | #57531 |
Στις 25/10/2013 6:17 μμ, ο/η Denis McMahon έγραψε:
> If the client is not sending the expected cookie to the server, then the
> most likely problem is that the client does not associate that particular
> cookie with the server url. If this is the case, then the problem is that
> when you initially sent the cookie to the client, you did not define the
> server url in the cookie in a manner that would cause the client to
> associate the cookie with the url in the subsequent request. This is not
> a python problem, it's an http cookies problem, and the answer lies in
> the cookie you are creating.
Assiciate the cookie with the url?
You mean add a domain directive to the cookie like:
# initialize cookie and retrieve cookie from clients browser
try:
cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] )
cookieID = cookie['name'].value
except:
cookieID = random.randrange(0, 9999)
cookie['ID'] = cookieID
cookie['ID']['domain'] = "superhost.gr"
cookie['ID']['path'] = '/'
print( cookie )
If this is how you mean it does not solve anything, problem persits.
I googled lots of hours and days about this but this is not mentioned in
any thread and i', stuck.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-26 02:34 +1100 |
| Message-ID | <mailman.1523.1382715258.18130.python-list@python.org> |
| In reply to | #57534 |
On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k <nikos.gr33k@gmail.com> wrote: > Assiciate the cookie with the url? > You mean add a domain directive to the cookie like: Do you understand: 1) what cookies are? 2) how the browser receives them? 3) how the server gets them back? 4) when #3 happens and when it does not? If not, go to Wikipedia and start reading. If you get to the end of Wikipedia without comprehending this, go back to the beginning and start over. ChrisA
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.python
csiph-web