You are here: Re: trouble with PHP session - i think ???? « PHP Programming Language « IT news, forums, messages
Re: trouble with PHP session - i think ????

Posted by Good Man on 07/12/07 21:57

Good Man <heyho@letsgo.com> wrote in news:Xns996BB5FE659EAsonicyouth@
216.196.97.131:

furthermore, if you look at the manual page for "session_register()" (which
you are using in your code):

http://ca3.php.net/manual/en/function.session-register.php

There are warnings abound. Of particular importance is the following:

// Use of session_register() is deprecated
$barney = "A big purple dinosaur.";
session_register("barney");

// Use of $_SESSION is preferred, as of PHP 4.1.0
$_SESSION["zim"] = "An invader from another planet


So drop the deprecated usage, stop trying to re-invent the wheel unless you
have a valid reason for doing so, and use sessions as they were meant to be
used - quickly and EASILY via my previous example.

Good luck.

 

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

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