Reply to Re: Declaring Session

Your name:

Reply:


Posted by Oli Filth on 04/03/06 04:22

Barkster said the following on 02/04/2006 23:29:
> Which one of these is the proper or suggested way to declare session
> variables. I've seen so many different ways but when I use
> session_register the pages are way slower.
>
> 1. session_register("MM_UserID");
> $HTTP_SESSION_VARS['MM_UserID'] = $theID;
>
> 2. session_register("MM_UserID");
> $_SESSION['MM_UserID'] = $loginusername;
>
> 3. $_SESSION['MM_UserID'] = $loginusername;
>

If you read the manual (http://php.net/session_register), you would see
that session_register() is deprecated, and has nothing to do with
$HTTP_SESSION_VARS or $_SESSION.

$_SESSION is the way forward!


--
Oli

[Back to original 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

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