php - session_id() always returns '' even if a session cookie is set -


I am currently experiencing problems with PHP function session_id.

At the beginning of my scripts, I check that the user has a session and I do not want to call session_start () because it generates a session cookie.

Every time I call session_id, this gives "it, even though the session is definitely set." I've verified that a session is set by checking session cookies through the $ _COOKIE array. Session_start () session is not present for PHP without calling Session_start () after you can easily call

Check that the user has found a session with the key check in the $ _SESSION super-global array.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -