浏览器关闭后如何维护会话值. [英] How to maintain session values after browser close.

查看:68
本文介绍了浏览器关闭后如何维护会话值.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



浏览器关闭后如何维护会话值?实际上,我想维护添加到购物车中的值,但事实是,我的值在浏览器关闭后变为null.
如果有人知道在浏览器关闭后如何维护会话值,请寻求帮助.

预先感谢.



how to maintain session values after browser close? Actualy i want to maintain values added in cart but the thing is that my values getting null after browser close.
If anybody knows how to maintain session values after browser close then pls help.

Thanks in advance.

推荐答案

使用配置文件 [ ^ ],而不是Session.那将被持久化到数据库中,这就是您想要的.
ASP.NET配置文件属性概述 [定义ASP.NET配置文件属性 [ cookies [ ASP.NET中的Cookie [ Cookies概述 [在ASP.NET中浏览会话 [
Use Profile[^] instead of Session. That will be persisted to the database, which is what you want.
ASP.NET Profile Properties Overview[^]
Defining ASP.NET Profile Properties [^]

You could also use cookies[^] for very small amount of data I guess.
Cookies in ASP.NET[^]
Cookies Overview[^]

Exploring Session in ASP.NET[^]


您可以使用outProc会话模式.
You can use outProc session mode.


这篇关于浏览器关闭后如何维护会话值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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