Цитата:
Оригинал написал(а) Flesh5
Повторюсь, я уже прочел все то что здесь постили
|
Ты гонишь. Цитата из текста по ссылку, которая тобой же приведена в этом треде:
Цитата:
Примеры
Замечание: As of PHP 4.1.0, $_SESSION is available as a global variable just like $_POST, $_GET, $_REQUEST and so on. Unlike $HTTP_SESSION_VARS, $_SESSION is always global. Therefore, you do not need to use the global keyword for $_SESSION. Please note that this documentation has been changed to use $_SESSION everywhere. You can substitute $HTTP_SESSION_VARS for $_SESSION, if you prefer the former. Also note that you must start your session using session_start() before use of $_SESSION becomes available.
The keys in the $_SESSION associative array are subject to the same limitations as regular variable names in PHP, i.e. they cannot start with a number and must start with a letter or underscore. For more details see the section on variables in this manual.
If register_globals is disabled, only members of the global associative array $_SESSION can be registered as session variables. The restored session variables will only be available in the array $_SESSION.
Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is recommended for improved security and code readability. With $_SESSION, there is no need to use the session_register(), session_unregister(), session_is_registered() functions. Session variables are accessible like any other variables.
|
Так что нихрена ты не читал.
Цитата:
а решение я на шел совсем на другом форуме! В РНР надо было включить register_globals = on! Можно же было объяснить а не строить из себя вундеркиндов, и смеяться над мной? [/b]
|
Не надо было врать, что ты прочитал текст, который тебе дали.