diff --git a/reference/session/functions/session-create-id.xml b/reference/session/functions/session-create-id.xml new file mode 100644 index 0000000000..ea4957d520 --- /dev/null +++ b/reference/session/functions/session-create-id.xml @@ -0,0 +1,151 @@ + + + + + session_create_id + Create new session id + + + &reftitle.description; + + stringsession_create_id + stringprefix + + + session_create_id is used to create new + session id for the current session. It returns collision free + session id. + + + If session is not active, collision check is omitted. + + + Session ID is created according to php.ini settings. + + + It is important to use the same user ID of your web server for GC + task script. Otherwise, you may have permission problems especially + with files save handler. + + + + + &reftitle.parameters; + + + + prefix + + + If prefix is specified, new session id + is prefixed by prefix. Not all + characters are allowed within the session id. Characters in + the range a-z A-Z 0-9 , (comma) and - + (minus) are allowed. + + + + + + + + + &reftitle.returnvalues; + + session_create_id returns new collision free + session id for the current session. If it is used without active + session, it omits collision check. + + + + + &reftitle.examples; + + + <function>session_create_id</function> example with <function>session_regenerate_id</function> + + +]]> + + + + + + + &reftitle.seealso; + + + session_regenerate_id + session_start + + + + + + +