Silverlight 4在表单身份验证cookie过期时引发事件
当表单身份验证 cookie 过期时,我对如何在 silverlight 中触发事件感到困惑。我想立即将应用程序重定向到登录屏幕。我知道我可以等到 Web 服务调用失败,但我认为在输入数据后将用户重定向到登录的客户体验很差。
I am stumped on how to fire an event in silverlight when a forms authentication cookie expires. I would like to redirect the application to a login screen immediately. I understand I can wait until a web service call fails but I think redirecting the user to login after inputing data is poor customer experience.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自使用 Silverlight 4 的专业商业应用程序,第 250 页
我想您可以在
MainPage
中创建一个计时器,如果计时器在 30 天内未更新,则自动重定向到登录分钟。我现在找不到引用,但我想我记得他还说过没有真正的方法来判断 cookie 何时过期。From Pro Business Applications With Silverlight 4, Page 250
I guess you could make a timer in the
MainPage
and just automatically redirect to the login if the timer wasn't updated for 30 minutes. I can't find the quote right now but I think I remember he also said that there is no real way of telling when the cookie expired.