You are here: Re: session_start and session_register « PHP Programming Language « IT news, forums, messages
Re: session_start and session_register

Posted by radmission05@gmail.com on 01/12/08 14:45

On Jan 11, 5:53 pm, Kurda Yon <kurda...@yahoo.com> wrote:
> Hi All,
>
> is that OK if I declare the same variable in the same file several
> times? For example somewhere in the beginning of a file I have
> session_register("cat") and than, somewhere in the middle of the file,
> I have again session_register("cat"). Can the second declaration
> destroy the value of the variable cat?
>
> Is that OK if I start_session several times in the same file? Will the
> second "start_session" open a new session?

i think its depend, if the $cat value doesnt change, it will not the
value $_SESSION['cat'] will be the same,
but if $cat value change before the declaration of
session_register($cat), of course $_SESSION['cat'] will change.

-------------------------------------------------------------------------
and will also depend on how you code it.

 

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

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