Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. session end automatic when delete folder in asp.net 2.0

session end automatic when delete folder in asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmintutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    trilokharry
    wrote on last edited by
    #1

    when I am deleting physical folder from application using bellow code then control going in Session_End in global.asax so page is redirecting to login page again means logout if (Directory.Exists(Server.MapPath(FolderPath))) { DirectoryInfo diSource = new DirectoryInfo(Server.MapPath(FolderPath).ToString()); foreach (FileInfo fi in diSource.GetFiles()) { fi.IsReadOnly = false; fi.Delete(); } Directory.Delete(Server.MapPath(FolderPath).ToString(), true); } so how to control this?

    You get the best out of others when you give the best of yourself.

    S 1 Reply Last reply
    0
    • T trilokharry

      when I am deleting physical folder from application using bellow code then control going in Session_End in global.asax so page is redirecting to login page again means logout if (Directory.Exists(Server.MapPath(FolderPath))) { DirectoryInfo diSource = new DirectoryInfo(Server.MapPath(FolderPath).ToString()); foreach (FileInfo fi in diSource.GetFiles()) { fi.IsReadOnly = false; fi.Delete(); } Directory.Delete(Server.MapPath(FolderPath).ToString(), true); } so how to control this?

      You get the best out of others when you give the best of yourself.

      S Offline
      S Offline
      Sajid A
      wrote on last edited by
      #2

      Hi Dear I think you need to assign Asp.Net user permission to directory.

      Sajid A.

      T 1 Reply Last reply
      0
      • S Sajid A

        Hi Dear I think you need to assign Asp.Net user permission to directory.

        Sajid A.

        T Offline
        T Offline
        trilokharry
        wrote on last edited by
        #3

        how to assign asp.net user permission.

        You get the best out of others when you give the best of yourself.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups