Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57498 > unrolled thread

Cookie aint retrieving when visiting happens from a backlink.

Started byΝίκος Αλεξόπουλος <nikos.gr33k@gmail.com>
First post2013-10-25 10:22 +0300
Last post2013-10-26 02:28 +1100
Articles 12 on this page of 32 — 11 participants

Back to article view | Back to comp.lang.python


Contents

  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 2 of 2 — ← Prev page 1 [2]


#57536

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-10-25 11:36 -0400
Message-ID<mailman.1524.1382715373.18130.python-list@python.org>
In reply to#57534
On Fri, Oct 25, 2013 at 11:34 AM, Chris Angelico <rosuav@gmail.com> wrote:
> 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
> --
> https://mail.python.org/mailman/listinfo/python-list

Chris is too kind.  Go to wikipedia. and then go for a walk.. don't
come back here

-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [prev] | [next] | [standalone]


#57537

FromNick the Gr33k <nikos.gr33k@gmail.com>
Date2013-10-25 18:49 +0300
Message-ID<l4e3u6$7l8$1@dont-email.me>
In reply to#57536
Στις 25/10/2013 6:36 μμ, ο/η Joel Goldstick έγραψε:
> On Fri, Oct 25, 2013 at 11:34 AM, Chris Angelico <rosuav@gmail.com> wrote:
>> 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
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
> Chris is too kind.  Go to wikipedia. and then go for a walk.. don't
> come back here
>
if he was too kind  liek you say,he wouldn't give vague ideas of help 
like google , or wiki it.

he would provide actual testing code so to know what the fuck is goidn 
wrong with it.

-- 
What is now proved was at first only imagined! & WebHost
<http://superhost.gr>

[toc] | [prev] | [next] | [standalone]


#57538

FromSteve Simmons <square.steve@gmail.com>
Date2013-10-25 17:28 +0100
Message-ID<mailman.1526.1382718948.18130.python-list@python.org>
In reply to#57534
On 25/10/2013 16:34, Chris Angelico wrote:
> 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 

Chris,

You truly are a saint!

I simply cannot believe the level of restraint you have shown during 
this exchange (unless of course you have bought tickets to Greece in 
order to deal with this issue in person and 'with extreme prejudice').

As for the OP - Nick, I think your utterly ignorant rudeness to Chris 
will have alienated the entire membership of this list and you should 
seriously consider a carefully worded apology.

This list does not exist to teach you how to run a website or to write 
software for it.  This list does not exist to explain every single 
aspect of network and web technology to someone who openly admits that 
they prefer to get answers from list members without doing any personal 
research.  This list exists to provide mutual to support members in 
their personal usage of and research into Python.

Most importantly, any contribution comes free of charge and you should 
recognise this gift and remember to use 'please and thank you' instead 
of 'don't be lazy'.  If you want to be respected by this group, you need 
to substantially change your attitude and start to do some research of 
your own before posting questions on this or any other list.

Steve

[toc] | [prev] | [next] | [standalone]


#57541

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2013-10-25 19:17 +0100
Message-ID<mailman.1531.1382725083.18130.python-list@python.org>
In reply to#57534
On 25/10/2013 17:28, Steve Simmons wrote:
>
> On 25/10/2013 16:34, Chris Angelico wrote:
>> 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
>
> Chris,
>
> You truly are a saint!
>
> I simply cannot believe the level of restraint you have shown during
> this exchange (unless of course you have bought tickets to Greece in
> order to deal with this issue in person and 'with extreme prejudice').

Hear hear.  Sadly I cannot say the same for myself.  Sorry folks :(

>
> As for the OP - Nick, I think your utterly ignorant rudeness to Chris
> will have alienated the entire membership of this list and you should
> seriously consider a carefully worded apology.
>
> This list does not exist to teach you how to run a website or to write
> software for it.  This list does not exist to explain every single
> aspect of network and web technology to someone who openly admits that
> they prefer to get answers from list members without doing any personal
> research.  This list exists to provide mutual to support members in
> their personal usage of and research into Python.
>
> Most importantly, any contribution comes free of charge and you should
> recognise this gift and remember to use 'please and thank you' instead
> of 'don't be lazy'.  If you want to be respected by this group, you need
> to substantially change your attitude and start to do some research of
> your own before posting questions on this or any other list.
>
> Steve

Thanks for this, it's helped bring me back to the world of reality.

-- 
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]


#57580

FromChris Angelico <rosuav@gmail.com>
Date2013-10-26 11:19 +1100
Message-ID<mailman.1563.1382746790.18130.python-list@python.org>
In reply to#57534
On Sat, Oct 26, 2013 at 3:28 AM, Steve Simmons <square.steve@gmail.com> wrote:
> Chris,
>
> You truly are a saint!
>
> I simply cannot believe the level of restraint you have shown during this
> exchange (unless of course you have bought tickets to Greece in order to
> deal with this issue in person and 'with extreme prejudice').

I have no such tickets. If I were to go to Greece, there are many
things much more worthy of my time than juvenile retaliation. :)

The main reason I'm patient with him is for the benefit of those
coming afterwards - maybe years afterwards - and reading the thread. I
want every thread to be either useful/informative or funny -
preferably both. :) Flaming Nikos isn't particularly helpful, though
sometimes it has been done very wittily.

ChrisA

[toc] | [prev] | [next] | [standalone]


#57692

FromPiet van Oostrum <piet@vanoostrum.org>
Date2013-10-26 21:17 -0400
Message-ID<m2k3gz1ph6.fsf@cochabamba.vanoostrum.org>
In reply to#57504
Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> writes:

> 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.

What is happening is that the page comes from the browser cache when you do a back link (back button in your browser). So the request doesn't go to your server. I checked this by switching off my internet connection and then trying both the back button and entering the URL in the address bar. So it has nothing to do with referrer, I think.
-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]

[toc] | [prev] | [next] | [standalone]


#57694

FromRoy Smith <roy@panix.com>
Date2013-10-26 21:34 -0400
Message-ID<roy-A0A401.21340826102013@news.panix.com>
In reply to#57692
In article <m2k3gz1ph6.fsf@cochabamba.vanoostrum.org>,
 Piet van Oostrum <piet@vanoostrum.org> wrote:

> ÉΪίκος Αλεξόπουλος <nikos.gr33k@gmail.com> writes:
> 
> > 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.
> 
> What is happening is that the page comes from the browser cache when you do a 
> back link (back button in your browser). So the request doesn't go to your 
> server. I checked this by switching off my internet connection and then 
> trying both the back button and entering the URL in the address bar. So it 
> has nothing to do with referrer, I think.

Unclear what this has to do with Python, but here's a couple of hints 
for debugging / exploring these kinds of issues.

1) Use a command-line tool such as curl to issue the request and see 
exactly what headers are send and come back.

2) If you want to do this inside a browser, use something like Chrome's 
Developer Tools.  In Chrome on the Mac, Command-Option-I will get you 
the tools screen, then click the network tab and send your request.  
It'll capture everything and you can drill down to see all the details.  
Any decent browser should have something similar (possibly as an add-on 
extension).

[toc] | [prev] | [next] | [standalone]


#57705

FromPiet van Oostrum <piet@vanoostrum.org>
Date2013-10-26 22:24 -0400
Message-ID<m2fvrn1mdh.fsf@cochabamba.vanoostrum.org>
In reply to#57692
Piet van Oostrum <piet@vanoostrum.org> writes:

> Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> writes:
>
>> 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.
>
> What is happening is that the page comes from the browser cache when
> you do a back link (back button in your browser). So the request
> doesn't go to your server. I checked this by switching off my internet
> connection and then trying both the back button and entering the URL
> in the address bar. So it has nothing to do with referrer, I think.

Upon reading another time your message, I now see that you probably mean
clicking on the link about WEB HOSTING in the pages mentioned. I tried
that and in both cases an entry comes in your data base. The only
difference is that the column Αναφέρων contains "Direct link' instead of
the referrer website.

So I think the Python code is working and your problem lies somewhere
else, outside the Python world.

-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]

[toc] | [prev] | [next] | [standalone]


#57725

FromNick the Gr33k <nikos.gr33k@gmail.com>
Date2013-10-27 08:45 +0200
Message-ID<l4icpu$jn3$1@dont-email.me>
In reply to#57705
Στις 27/10/2013 4:24 πμ, ο/η Piet van Oostrum έγραψε:
> Piet van Oostrum <piet@vanoostrum.org> writes:
>
>> Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> writes:
>>
>>> 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.
>>
>> What is happening is that the page comes from the browser cache when
>> you do a back link (back button in your browser). So the request
>> doesn't go to your server. I checked this by switching off my internet
>> connection and then trying both the back button and entering the URL
>> in the address bar. So it has nothing to do with referrer, I think.
>
> Upon reading another time your message, I now see that you probably mean
> clicking on the link about WEB HOSTING in the pages mentioned.

Yes, this is exactly what i mean.
I tried
> that and in both cases an entry comes in your data base. The only
> difference is that the column Αναφέρων contains "Direct link' instead of
> the referrer website.

This happened because i switched the code once again and removed the 
cookie setting/retrieving.

If i put it back then every time a visitor comes from a referrer 
backlink an exact duplicate row with the same host appears into my 
database except from the 'ref' column which is different.
> So I think the Python code is working and your problem lies somewhere
> else, outside the Python world.



-- 
What is now proved was at first only imagined! & WebHost
<http://superhost.gr>

[toc] | [prev] | [next] | [standalone]


#57505

FromΝίκος Αλεξόπουλος <nikos.gr33k@gmail.com>
Date2013-10-25 11:26 +0300
Message-ID<l4d9ut$lrm$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...
Why would it matter how superhost.gr is called?

-- 
What is now proved was at first only imagined! & WebHost
<http://superhost.gr>

[toc] | [prev] | [next] | [standalone]


#57530

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-10-25 15:13 +0000
Message-ID<526a8aa0$0$29972$c3e8da3$5496439d@news.astraweb.com>
In reply to#57498
On Fri, 25 Oct 2013 10:22:00 +0300, Νίκος Αλεξόπουλος wrote:

> Can somebody explain why this is happening?

Yes -- it's the same answer that was given the previous time you asked 
this same question, 2-3 weeks ago, and it will be the same answer next 
time you ask too.

Look back at the thread called "Cookie gets changed when hit comes from a 
referrer". This is the same problem, and the answer remains the same.


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#57533

FromChris Angelico <rosuav@gmail.com>
Date2013-10-26 02:28 +1100
Message-ID<mailman.1522.1382714935.18130.python-list@python.org>
In reply to#57530
On Sat, Oct 26, 2013 at 2:13 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Fri, 25 Oct 2013 10:22:00 +0300, Νίκος Αλεξόπουλος wrote:
>
>> Can somebody explain why this is happening?
>
> Yes -- it's the same answer that was given the previous time you asked
> this same question, 2-3 weeks ago, and it will be the same answer next
> time you ask too.

It's like an Augury or Divination.

http://www.dandwiki.com/wiki/SRD:Divination

"""As with augury, multiple divinations about the same topic by the
same caster use the same dice result as the first divination spell and
yield the same answer each time."""

ChrisA

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.python


csiph-web