c# mvc 中因为我用session保存了信息,时间一长session过期,需要重新跳转外部某个链接重新获取状态

c# mvc 中因为我用session保存了信息,时间一长session过期,需要重新跳转外部某个链接重新获取状态,问题出现在这了:

https://open.weixin.qq.com/connect/oauth2/authorize?appid=qwe123123qqqq&redirect_uri=http://www.xxxxxx.com/userInfo/Index&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect

&字符后面的 redirect_uri scope 都出现了未定义实体的错误, 请问怎么解决

可以在application_start里面启动一个线程,定时刷新下,保持你的进程不被回收。