SessionState会超时从不闪光 [英] SessionState Timeout never fires

查看:165
本文介绍了SessionState会超时从不闪光的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是什么做错了。将sessionState超时不闪光,它24小时后仅火灾,我要让它在火在我的网页20分钟。在web.config中我处理的sessionState是这样的:

What am I doing wrong. The sessionState Timeout never fires,It only fires after 24 hours, I want to let it fire in 20 minutes on my webpage. In the web.config I handle the sessionstate like this:

<sessionState cookieless="false" mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
    timeout="1" stateNetworkTimeout="1"/>

超时=1是有目的的,用于测试。
而在code我检查我该会议通过调用 Session.SessionID.ToString()

推荐答案

我已经想通了,如果我改变无cookie = FALSE - >不错,它的工作原理,但现在的SessionID在我的网址中。我怎么能摆脱我的网址的SessionID的。
它像 http://domain.com/(S(nvqmpm45j2fnnc21w00sjx55))/index.aspx

I've figured out that if I change cookieless=false -> true that it works , but now the sessionid is shown in my URL. How could I get rid of the sessionid in my url. its like http://domain.com/(S(nvqmpm45j2fnnc21w00sjx55))/index.aspx

这篇关于SessionState会超时从不闪光的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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