You are here: Re: referrer « PHP Programming Language « IT news, forums, messages
Re: referrer

Posted by Gordon Burditt on 10/17/07 22:58

>I have researched this but have been unsuccessful. I have a site that I
>bring up in a tab on my IE browser. I log in which sets a session variable.
>If I then kill that tab, open a new tab and bring up the site again, I am
>still logged in. If I open a new browser instead, then I am not logged on.

Tabs on the same browser have the same set of cookies, which means
they have the same session (at least that's my observation in IE).

>I would like to be logged out if I kill the tab.

If you ask really, really nice (with huge trainloads of money),
Microsoft might change this in Service Pack 86 of IE. But I doubt
it. Or you might find a registry key you can tweak to get that
behavior: on your browser only.

Note that giving each tab their own bucket of cookies probably means
that every new tab is logged out of everything, and that might break
the way some existing sites work (anything that (a) opens a new tab
and (b) requires you to be logged in to view the new tab would
likely break). Functions like "remember my login" would only work
on individual tabs. Is that really how it should work?

>I tried with the referer
>(why is it spelled this way? It should be referrer), but it was empty for
>both the new session and the new tab.

Referer won't tell you what tab something came from. It's also trivially
easy to fake.

>How can I determine that this is a new session for the tab as well as the
>new browser?

Switch browsers? I think there's a browser that DOES give a different
bucket of cookies to each tab. Opera perhaps?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация