+ 2

Is "$_post" unique per user

Is the php variable POST unique to each user? I mean does one get created for each user visiting the page/pages. Since it is a vector I am wondering if it holds the user information for all visitors or if it is unique per user. Also since it is a a vector, is there a definition where I can see all parameters it can hold. Thanks.

9th Mar 2018, 10:01 AM
Adam Aksu
Adam Aksu - avatar
1 Odpowiedź
+ 4
AFAIK the $_POST variable is created on the server per incoming request, the content of the variable differs between one request and another, for example, in a web page login form, each client logically will be sending different data to the server, depending on their login name and password. You can view a raw content of $_POST by passing it as an argument to print_r() function, e.g. print_r($_POST);. You can get more details about PHP superglobal variables at the manual page: http://php.net/manual/en/language.variables.superglobals.php Hth, cmiiw
9th Mar 2018, 11:24 AM
Ipang