sneakyimp;11053423 wrote:Not so fast!
Yes, of course, but as a programmer I can write PHP sessions without ever using a $_COOKIE variable or even knowing that they exist, because PHP does that for me (unless the configuration is set not to), which was my point.
So, while it doesn't hurt to know how PHP does session work (and you make reference to both methods, via a cookie and via use_trans_sid), it's not necessary to think about when writing basic code, and we may muddy the waters in our discussions with less-experienced users when we get overly pedantic about such things. 🙂
And, since I have now out-pedantic'ed you and mentioned it out loud, let it be known that use_trans_sid is not secure, can allow sessions to be hijacked, and should NOT be used across a wide-area-network like the Internet, and probably shouldn't be used anywhere these days. 🙂