П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое







Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 98189 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 29077 раз(а).

Учебник HTML.
Просмотров 56199 раз(а).

Руководство по PHP5.
Просмотров 25939 раз(а).

Хостинг через призму DNS.
Просмотров 30466 раз(а).

Подборка текстов стандартных документов.
Просмотров 28980 раз(а).

Учебник PHP - Самоучитель
Просмотров 33729 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 34987 раз(а).

Внешние атаки...
Просмотров 26956 раз(а).

Учебник PHP.
Просмотров 22782 раз(а).

SSI в примерах.
Просмотров 17855 раз(а).



 
 



Руководство по PHP
Пред. След.

session_id

(PHP 4, PHP 5)

session_id -- Get and/or set the current session id

Описание

string session_id ( [string id] )

session_id() is used to get or set the session id for the current session.

The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs. See also Session handling.

Список параметров

id

If id is specified, it will replace the current session id. session_id() needs to be called before session_start() for that purpose. Depending on the session handler, not all characters are allowed within the session id. For example, the file session handler only allows characters in the range a-z, A-Z and 0-9!

Замечание: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless if the current session id is identical to the one being set.

Возвращаемые значения

session_id() returns the session id for the current session or the empty string ("") if there is no current session (no current session id exists).


Пред. Начало След.
session_get_cookie_params Уровень выше session_is_registered


 





Copyright © 2005-2011 Project.Net.Ru