You are here: Re: _SESSION weirdness behind a NAT firewall/router: bug? « PHP Programming Language « IT news, forums, messages
Re: _SESSION weirdness behind a NAT firewall/router: bug?

Posted by Jerry Stuckle on 07/30/06 14:56

axlq wrote:
>
> The real problem is that the web hosting server seems to think that
> every computer on my home network shares the same session ID, and I
> don't know what to do about it. I haven't made the web site public
> yet. I certainly can't do so as long as $_SESSION poses such a huge
> security risk. There are much more than just home networks behind
> NAT firewall/routers. If multiple people in a large organization
> try to access my site, all kinds of conflicts will occur.
>
> -A

The web server doesn't keep track of the session like that. It sends a
cookie to the browser with the session id, and the browser keeps track
of the id.

However, that also depends on your PHP.INI file. You should have

session.use_cookies = 1

in your php.ini file.

But I'm also not sure why you're using those other calls - such as
session_save_path and session_name(). These should be set up in your
php.ini file and you shouldn't need to override them.

I'm also not sure why you're using set_cookie on the session name.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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