What is the difference between $ _ENV, $ _SESSION and $ _COOKIE

I mainly used $ _ SESSION , but reading about the session, I got a few terms

$ _ ENV &

$ _ COOKIE .

I don’t understand when to use which one, I got confused in a situation where I can use them. So how do these terms differ?

+5
source share
3 answers

, , script , $_SESSION $_COOKIE ( ) , $_ENV . $_SESSION $_COOKIE , $_COOKIE , , ( ).

http://www.php.net/manual/en/intro.session.php

+2

$_ ENV , , .. $ _COOKIE cookie, .

+1

All Articles