PHP
处理 XForms> <cookies
Last updated: Mon, 12 Sep 2005

章 36. 会话

会话机制(Session)在 PHP 中用于保存并发访问中的一些数据。这使可以帮助创建更为人性化的程序,增加站点的吸引力。关于会话机制的更多信息,请参见会话处理函数一章。



add a note add a note User Contributed Notes
会话
anton at logosfabula dot net
18-Jan-2007 03:32
karisa_jay at yahoo dot com:
sessions are client side variables which are stored onto client
is quite incorrect, better:
sessions are per-client variables which are stored onto the server; the unique relationship (session) between a webserver and any browser is ensured by a unique id stored both on the webserver system and (usually) on a special cookie available to the browser. The client stores this id only, not the variables (see Session reference section).
karisa_jay at yahoo dot com
18-Jan-2007 01:26
sessions are client side variables which are stored onto client
side on which broweser is accessing the page.
the variables are set using function $_SESSION['variablename']=variablevalue;

well known example of using session is shopping cart in which
user select the product by clicking on it.

处理 XForms> <cookies
Last updated: Mon, 12 Sep 2005