answersLogoWhite

0

POST:

Taken from the HTTP 1.0 RFC (#1945:8.3)

The POST method is used to request that the destination server accept

the entity enclosed in the request as a new subordinate of the

resource identified by the Request-URI in the Request-Line. POST is

designed to allow a uniform method to cover the following functions:

o Annotation of existing resources;

o Posting a message to a bulletin board, newsgroup, mailing list,

or similar group of articles;

o Providing a block of data, such as the result of submitting a

form [3], to a data-handling process;

o Extending a database through an append operation.

SESSION:

http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.session

An associative array containing session variables available to the current script. See the Session functions documentation for more information on how this is used.

This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do a global $_SESSION; to access it within functions or methods, as you do with $HTTP_SESSION_VARS.

$HTTP_SESSION_VARS contains the same information, but is not a superglobal. (Note that $HTTP_SESSION_VARS and $_SESSION are different variables and that PHP handles them as such)

If the register_globals directive is set, then these variables will also be made available in the global scope of the script; i.e., separate from the $_SESSION and $HTTP_SESSION_VARS arrays. For related information, see the security chapter titled Using Register Globals. These individual globals are not superglobals.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

WHAT is the difference between session and cookie in php?

The session is stored on the web server. The cookies is stored in a little file on users machine. This means that the session is (relatively) secure, whereas the cookie can be edited by the end user.


Difference between apache and PHP?

Apache is a web server. PHP is a scripting language.


Write down a PHP code to add a session variable?

The preferred way is to simply alter the session superglobal. <?php $_SESSION['variable'] = "value"; ?>


What is the purpose of a PHP session?

A PHP session serves quite a few purposes. PHP sessions store data that the web application developer would like to have preserved across the different page loads.


What is a php session?

A PHP session is a concept where specific variables (and their respective values) are carried throughout a user's viewing of a PHP-driven website. These sessions can be initialized and continued using the session_start() function. The session values are stored in the $_SESSION global variable. For more information, see the php.net documentation of session functions.


What is the difference between POST and REQUEST methods in PHP?

The $_POST array contains only variables supplied by a form that used the POST method, while the $_REQUEST array combines the $_POST, $_GET and $COOKIE arrays.


What is the difference between PHP and struts?

STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language


How can you get the session after the user logs out in PHP?

Depends what you mean with that. If the user logs out, the session gets destroyed, and with it the session ID. You'd need to grab the session ID before the user logs out.


What is the difference between net and php?

.net is a framework based on Microsoft software and is not open source, php is a language which is open source and based on Linux/unix systems


Difference between jsp and php?

JSP stands for Java Server Pages whereas PHP stands for Hypertext PreProcessor. PHP is a scripting language whereas JSP is a full fledged technology. JSP is much more powerful and has more features than PHP


What is the difference between the 1982 Large Digit and Small Digit pennies?

http://www.thecentproject.com/sort1982.php


How do you update and delete data from PHP sessions?

To update/delete data from a session all you need to do is the following: <?php // to update the session, you just overwrite it like a normal variable $_SESSION['name'] = "pizza"; // to delete a sessions data you can do this $_SESSION['name'] = ""; ?>