在asp.net中的会话c#喜欢php session吗? [英] session in asp.net c# like php session?

查看:46
本文介绍了在asp.net中的会话c#喜欢php session吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net c#中是否有像PHP这样的会话。我的意思是它不是在客户端机器中存储会话ID而且会话ID没有在URL中显示像cookie less session.I不想在我的会话中使用cookie少会话我希望PHP之类的会话在客户端机器上不存储会话ID而且在URL中也不显示会话ID有什么办法吗?

Is there any sessions in asp.net c# like PHP.I mean which is not store session-id in client machine and also session id not show in URL like cookie less session.I dont want to use cookie less session in my application.I want sessions like PHP which is not store session id in client machine and also not show session id in URL is there any way?

推荐答案

是在asp。 net也会话存在,它不会显示在URL中。

通过这种方式,我们可以在asp.net C#中分配会话。

Yes In asp.net also session is present, Which will not show in the URL.
In this way we can assign session in asp.net C#.
Session["session_name"] = "session_data";





更多详情

http://msdn.microsoft.com/en-us/library /ms178581(v=vs.100).aspx [ ^ ]

在ASP.NET中探索会话 [ ^ ]



欲了解更多链接,请谷歌。



For More Details
http://msdn.microsoft.com/en-us/library/ms178581(v=vs.100).aspx[^]
Exploring Session in ASP.NET[^]

For more Links please Google.


这篇关于在asp.net中的会话c#喜欢php session吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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