删除目录会话后清除 [英] After delete a directory session cleared

查看:62
本文介绍了删除目录会话后清除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我尝试使用以下代码删除目录

Hi Friends,

I tried to delete a directory using the following code

Directory.Delete("Directory name",true);



它的工作正常.我尝试使用会话消息重定向同一页面.
但是会话已清除,并自动重定向到登录页面.
任何人都可以帮助重定向带有会话消息的同一页面.



谢谢



Its working fine. I try to redirect the same page with session message.
But the session was cleared and its automatically redirect to login page.
Could anyone help to redirect the same page with session message.



Thanks

推荐答案



无法使用此代码清除会话.
您应该在配置文件中检查会话超时设置.并调试您的代码以检查会话将在哪里到期.

最可能的原因:会话即将进入重定向页面,在重定向页面的页面加载中放置断点并检查代码.
Hi,

Session can not clear with this code.
You should check your session timeout setting in config file. And debug you code to check where the session is expiring.

Most probable reason : Session is expiring into the redirected page, Put break point in page load of redirected page and check the code.


这篇关于删除目录会话后清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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