Length of PHPSESSID appears to be 32 characters by default.
![]() | 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. Note that SID is only defined if the client didn't send the right cookie. See also Session handling. 参数
返回值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). ![]()
simon at quo dot com dot au
07-Mar-2006 02:15
Length of PHPSESSID appears to be 32 characters by default.
jwhatcher at hotmail dot com
08-Jul-2005 03:21
Killing the session_id when using cookies to store the session_id. Useful when needing to recreate a user with different session information during an open session.
jpjounier at hotmail dot com
23-Jun-2005 07:28
About the note from Cybertinus :
cbarnes at bfinity dot net
10-May-2005 09:44
Note that Firefox and Mozilla use the same process for launching new windows or tabs, they will pick up the same session id as the previous windows until the parent process dies or is closed. This may cause undesired results if the session id is stored in a db and checked, a solution is to check at the new entry point (new tab or window if the user went back to the index page) for an existing session. If a session id exists and a new one is required use something like:
jeff_zamrzla
11-Feb-2005 07:03
Try this code snippet, from a book by a security expert who says this is more secure to place on every page:
karlhaines at comcast dot net
31-Oct-2003 09:05
Rewriting URL's is not suggested for obvious security issues. Please be careful with register_globals when using sessions! Check that all information you recieve from a user is valid before accepting it!
Andi, info at pragmaMx dot org
17-Jan-2003 05:13
you can also add the iframe tag: | ![]() |