You are here: Re: Can variables be shared across sessions? « PHP Programming Language « IT news, forums, messages
Re: Can variables be shared across sessions?

Posted by Andy Hassall on 09/30/05 22:42

On Fri, 30 Sep 2005 19:04:14 +0000 (UTC), "C16" <noone@nowhere.com> wrote:

>Another newbie question. I have a small website working via php and all is
>fine, but I wanted to add some new features and was wondering if php allows
>for variables to be seen by multiple sessions, ie a user viewing the web
>site on one machine can see variables created by another users session. Is
>that what $_SERVER[] is for, or am I going to be better of creating a single
>entry table in mySQL that has a field for each global variable?

$_SERVER does not do this; it contains various bits of request information,
but does not persist between requests.

A database would be an appropriate choice for this.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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