如何会话工作? [英] How Session Works?

查看:110
本文介绍了如何会话工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何机构可以解释我的会议PHP是如何工作的。对于如。 3用户登录到Gmail中。服务器如何识别这些3 uers。什么是落后于个内处理。

Any body can explain me how session works in PHP. for eg. 3 users logged into gmail. how the server identifies these 3 uers. what are the internel process behind that.

推荐答案

会话由两个部分组成,一个客户端的会话ID 服务器端的会话数据<中/强>。客户可以发送会话ID到服务器的URL参数,饼干,甚至是HTTP标头。
然后,服务器使用这个会话ID找到相应的会话数据返回给客户端。

Sessions are made up of two components, a client-side session ID and server-side session data. Clients can send a session ID to the server as a URL param, cookie, or even HTTP headers. The server then uses this session ID to find the appropriate session data to return to the client.

您可以通过各种调整会话行为会议_ 功能

You can tweak session behavior via the various session_ functions.

这篇关于如何会话工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆