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,Cache Problem

Session,Cache Problem

Scheduled Pinned Locked Moved ASP.NET
questionhelp
5 Posts 3 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.
  • S Offline
    S Offline
    sjs4u
    wrote on last edited by
    #1

    Hi I m using Login Control. Now When I use Administrator login it goes to default.aspx page and I am showing all links of the form. When I click on perticular link(Client.aspx) of the form it showing form details. Now I logout and login with different user. Instead of going to default.aspx page it showing previous page(Client.aspx) as administrator login & open that link. In the browsers address bar it showing that link of that page. that means my browser not clearing the even if I already written code to go to default page. How can I clear it? Thanks sjs

    R P 2 Replies Last reply
    0
    • S sjs4u

      Hi I m using Login Control. Now When I use Administrator login it goes to default.aspx page and I am showing all links of the form. When I click on perticular link(Client.aspx) of the form it showing form details. Now I logout and login with different user. Instead of going to default.aspx page it showing previous page(Client.aspx) as administrator login & open that link. In the browsers address bar it showing that link of that page. that means my browser not clearing the even if I already written code to go to default page. How can I clear it? Thanks sjs

      R Offline
      R Offline
      rakeshs312
      wrote on last edited by
      #2

      clear cache private void Page_Load(object sender, System.EventArgs e) { Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); }

      S 1 Reply Last reply
      0
      • R rakeshs312

        clear cache private void Page_Load(object sender, System.EventArgs e) { Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); }

        S Offline
        S Offline
        sjs4u
        wrote on last edited by
        #3

        Thanks for Reply. But Its not working with the given code.It still going to other page. Thanks sjs

        1 Reply Last reply
        0
        • S sjs4u

          Hi I m using Login Control. Now When I use Administrator login it goes to default.aspx page and I am showing all links of the form. When I click on perticular link(Client.aspx) of the form it showing form details. Now I logout and login with different user. Instead of going to default.aspx page it showing previous page(Client.aspx) as administrator login & open that link. In the browsers address bar it showing that link of that page. that means my browser not clearing the even if I already written code to go to default page. How can I clear it? Thanks sjs

          P Offline
          P Offline
          Pranay Rana
          wrote on last edited by
          #4

          check this http://forums.asp.net/p/1168107/2373849.aspx#2373849[^]

          S 1 Reply Last reply
          0
          • P Pranay Rana

            check this http://forums.asp.net/p/1168107/2373849.aspx#2373849[^]

            S Offline
            S Offline
            sjs4u
            wrote on last edited by
            #5

            Still Doesnt work......

            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