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

Posted by Michael Vilain on 01/04/06 08:16

In article <1136346431.043985.98160@g43g2000cwa.googlegroups.com>,
"Slav" <slawek_jarosz@engineer.com> wrote:

> Hello,
>
> I am using multiple instances of IE on the same machine to test a web
> site I've created. The web site can be accessed by multiple user type
> each with different access rights (e.g. Admin and User). Sometimes
> what I see happening is that the User session switchs to Admin session
> and vice versa. The web server is using cookies to communicate session
> info and I thought this should be relatively foolproof. Any ideas how
> to prevent this from happening? Thanks in advance,
>
> Slav

If I understand your situation, if IE is running on the same machine
with the same IP address and user, I don't see a way to do what you're
trying to accomplish--separate instances using the same browser. Now,
if you have two different browsers (say, IE and FireFox), that would
probably work as cookies are usually stored in separate places. Or use
separate user accounts (if your OS allows multiple logins) as the cookie
files are in different directories. But the web server (and php) has no
way to distinguish connections coming from the same machine. Only the
client browser differentiates that. So, unless you use a different
user, browser, or machine, you're pretty much stuck with the behavior
you see.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

 

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

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