Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57603
| From | Nick the Gr33k <nikos.gr33k@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Cookie fucking problem |
| Date | 2013-10-26 16:27 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <l4gfv7$921$1@dont-email.me> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Cookie fucking problem Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-26 16:27 +0300
Re: Cookie fucking problem Chris Angelico <rosuav@gmail.com> - 2013-10-27 00:39 +1100
Re: Cookie fucking problem Ben Finney <ben+python@benfinney.id.au> - 2013-10-27 00:40 +1100
Re: Cookie fucking problem Yaşar Arabacı <yasar11732@gmail.com> - 2013-10-26 17:05 +0300
Re: Cookie fucking problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 15:34 +0100
Re: Cookie fucking problem Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-26 17:55 +0300
Re: Cookie fucking problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 16:21 +0100
Re: Cookie fucking problem Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-26 18:25 +0300
Re: Cookie fucking problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 16:50 +0100
Re: Cookie fucking problem rusi <rustompmody@gmail.com> - 2013-10-26 09:05 -0700
Re: Cookie fucking problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 17:22 +0100
Re: Cookie fucking problem Ben Finney <ben+python@benfinney.id.au> - 2013-10-27 08:43 +1100
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-27 14:30 +0100
Re: Cookie fucking problem Steven D'Aprano <steve@pearwood.info> - 2013-10-28 07:44 +0000
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-28 09:10 +0100
Re: Cookie fucking problem Grant Edwards <invalid@invalid.invalid> - 2013-10-28 14:33 +0000
Re: Cookie fucking problem Chris Angelico <rosuav@gmail.com> - 2013-10-29 01:38 +1100
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-28 16:07 +0100
Re: Cookie fucking problem Ned Batchelder <ned@nedbatchelder.com> - 2013-10-28 13:08 -0400
Re: Cookie fucking problem rusi <rustompmody@gmail.com> - 2013-10-28 10:53 -0700
Re: Cookie fucking problem Ned Batchelder <ned@nedbatchelder.com> - 2013-10-28 14:22 -0400
Being a welcoming place [was Re: Cookie fucking problem] Steven D'Aprano <steve@pearwood.info> - 2013-10-29 05:10 +0000
Re: Cookie fucking problem rusi <rustompmody@gmail.com> - 2013-10-28 09:51 -0700
Re: Cookie fucking problem Ben Finney <ben+python@benfinney.id.au> - 2013-10-28 10:26 +1100
Re: Cookie fucking problem rusi <rustompmody@gmail.com> - 2013-10-27 20:44 -0700
Re: Cookie fucking problem Neil Cerutti <neilc@norwich.edu> - 2013-10-28 13:20 +0000
Re: Cookie fucking problem Steven D'Aprano <steve@pearwood.info> - 2013-10-29 05:28 +0000
Re: Cookie fr*cking problem Neil Cerutti <neilc@norwich.edu> - 2013-10-29 12:17 +0000
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-28 08:13 +0100
Re: Cookie fucking problem Ned Batchelder <ned@nedbatchelder.com> - 2013-10-26 12:00 -0400
Re: Cookie fucking problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-26 16:00 +0000
Re: Cookie fucking problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 17:19 +0100
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-26 19:18 +0200
Re: Cookie fucking problem Grant Edwards <invalid@invalid.invalid> - 2013-10-28 14:38 +0000
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-26 19:23 +0200
Re: Cookie xxxxing problem Stephan Vladimir Bugaj <sbugaj@pixar.com> - 2013-10-26 12:32 -0700
Re: Cookie xxxxing problem rusi <rustompmody@gmail.com> - 2013-10-27 08:59 -0700
Re: Cookie fucking problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 22:22 +0100
Re: Cookie fucking problem Ben Finney <ben+python@benfinney.id.au> - 2013-10-27 08:44 +1100
Re: Cookie fucking problem Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-28 11:14 +0100
Re: Cookie fucking problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-26 16:02 +0000
Re: Cookie (expletive) problem Zero Piraeus <z@etiol.net> - 2013-10-26 10:49 -0300
csiph-web