Re: Session



desh wrote:
helo friends

I m newbie in PHP . I m not able to know what exactly the use of
session is. How can one keep the track of users using Session..

Desh


Hello, Desh,

A session is basically a way to remember data between requests.

When a user requests a page, he gets that html. However, once the page has been sent from the server to the user, the server forgets about it. That request is done. The next request coming in starts "fresh" - nothing from the previous page is available. The closest you can come is hidden fields in a form (which is also very insecure).

The session is a way to save information between requests. The data is stored on the server, and a cookie containing the session's unique id is sent to the user's browser. Now when the user requests the next page, the cookie is sent back to the server with the request. The server can then retrieve the session information and make it available to the page.

Hope this helps a little.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.