hello
i need a solution for 'directory.delete()'.when use this method coused clear session.
Why directory.delete() coused clear session?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Posted Sep 21, 2010, 4:08 AM EDT
Can u be more elaborate as wat is ur issue is.....
With Regards
P.Krishna Prasad
mohsen izedi3 reputationPosted Sep 21, 2010, 9:12 PM EDT
ArshadRank #2,492 · 564 reputationPosted Sep 22, 2010, 1:14 AM EDT
I tried with the below code under button click event.
Directory.CreateDirectory("C:\\Test");
Session["Name"] = "Arshad Khan";
Directory.Delete("C:\\Test");
Response.Redirect(@"Content\Default.aspx");
Created the directory and deleted, but its maintaing the session value. there is some other thing that you might be missing.
Regards,
Arshad