Query: session_name
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SESSION_NAME(3) 1 SESSION_NAME(3) session_name - Get and/or set the current session nameSYNOPSISstring session_name ([string $name])DESCRIPTIONsession_name(3) returns the name of the current session. If $name is given, session_name(3) will update the session name and return the old session name. The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name(3) for every request (and before session_start(3) or session_register(3) are called).PARAMETERSo $name - The session name references the name of the session, which is used in cookies and URLs (e.g. PHPSESSID). It should contain only alphanumeric characters; it should be short and descriptive (i.e. for users with enabled cookie warnings). If $name is specified, the name of the current session is changed to its value. Warning The session name can't consist of digits only, at least one letter must be present. Otherwise a new session id is generated every time.RETURN VALUESReturns the name of the current session. If $name is given and function updates the session name, name of the old session is returned.EXAMPLESExample #1 session_name(3) example <?php /* set the session name to WebsiteID */ $previous_name = session_name("WebsiteID"); echo "The previous session name was $previous_name<br />"; ?>SEE ALSOThe session.name configuration directive . PHP Documentation Group SESSION_NAME(3)
Related Man Pages |
---|
session_regenerate_id(3) - php |
session_set_cookie_params(3) - php |
gnome-session-save(1) - debian |
sessionhandlerinterface.read(3) - php |
dancer::session::abstract(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
setting session time |
tracing a user's session |
session limit in php |
.bash_history |
default session in screen command |