基本:会话ID是如何产生的? [英] Basic: How is the session id created?

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

问题描述

请问IIS创建会话ID当接收到一个请求,其中救(客户端或服务器)?

Does IIS create the session id when a request is received and where is that saved (client or server)?

如何服务器识别请求来自同一个用户/会话来了?

How does server recognize that the request is coming from the same user/session?

推荐答案

回答你的第一个问题是肯定的 - 如果使用会话,两个

The answer to your first question is Yes -- if sessions are used, and Both.

Cookie是文本短位与每一个请求/响应客户端和服务器之间来回传递。

A cookie is a short bit of text passed back and forth between client and server with every request/response.

IIS生成一个会话ID,保存它,和任何相关的数据,并传递在cookie中的客户端(浏览器)。

IIS generates a session id, saves it, and any associated data, and passes the in a cookie to the client (browser).

当客户端发出另一个请求,它发送该cookie包含的SessionID回服务器。然后,服务器可以看一下cookie并找到会话(和相关的数据),这是保存在服务器上。

When the client makes another request, it sends the cookie, containing the sessionID back to the server. The server can then look at the cookie and find the session (and the associated data) which is saved on the server.

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

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