ASP.NET中有哪些不同类型的会话 [英] what are different types of sessions in ASP.NET

查看:53
本文介绍了ASP.NET中有哪些不同类型的会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我想了解ASP.NET中不同类型的会话,而不是会话状态.那就是面试中提出的问题.

Here I want to know different types of Session in ASP.NET and not Session States. That was the question asked in an interview.

推荐答案

典型会话基于cookie.服务器给您一个,您根据每个请求将其发送到服务器.但是,Asp.net也允许您使用其他类型的会话-无cookie会话.然后,会话ID被存储"在URL地址中.如果使用不当,此技术将非常危险.

Typical sessions are based on a cookie. The server gives you one, you send it to the server upon every request. However, Asp.net allows you a different type of sessions as well - cookieless sessions. The session id is then "stored" in the URL address. This technique is very dangerous if used improperly.

这篇关于ASP.NET中有哪些不同类型的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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