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

Session

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
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.
  • M Offline
    M Offline
    Morgs Morgan
    wrote on last edited by
    #1

    Hi guys, I have a tiny misunderstanding in implementing my session timeout. I have a asp.net solution with three pages, Default.aspx, Logout.aspx, and Home.aspx, ofcourse all these share the same web.config file. In my web.config I have:

    and

    but only the Default.aspx is timing out and refreshes. But I want that to happen in the Home.aspx, when no activity is received it must redirect to the Default.aspx. I know I am messing up somewhere, can anybody help me please??? Thanks M

    S M 2 Replies Last reply
    0
    • M Morgs Morgan

      Hi guys, I have a tiny misunderstanding in implementing my session timeout. I have a asp.net solution with three pages, Default.aspx, Logout.aspx, and Home.aspx, ofcourse all these share the same web.config file. In my web.config I have:

      and

      but only the Default.aspx is timing out and refreshes. But I want that to happen in the Home.aspx, when no activity is received it must redirect to the Default.aspx. I know I am messing up somewhere, can anybody help me please??? Thanks M

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      MorgSim wrote:

      timeout ="1"

      Whats This..! Try this link it may help..! http://msdn.microsoft.com/en-us/library/h6bb9cz9(vs.80).aspx[^]

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      M 2 Replies Last reply
      0
      • S sashidhar

        MorgSim wrote:

        timeout ="1"

        Whats This..! Try this link it may help..! http://msdn.microsoft.com/en-us/library/h6bb9cz9(vs.80).aspx[^]

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        M Offline
        M Offline
        Morgs Morgan
        wrote on last edited by
        #3

        sashidhar wrote: MorgSim wrote: timeout ="1" Whats This..! theat is my timeout in minutes, that's just testing man

        1 Reply Last reply
        0
        • S sashidhar

          MorgSim wrote:

          timeout ="1"

          Whats This..! Try this link it may help..! http://msdn.microsoft.com/en-us/library/h6bb9cz9(vs.80).aspx[^]

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          M Offline
          M Offline
          Morgs Morgan
          wrote on last edited by
          #4

          Thanks though I will go through your link Morg

          1 Reply Last reply
          0
          • M Morgs Morgan

            Hi guys, I have a tiny misunderstanding in implementing my session timeout. I have a asp.net solution with three pages, Default.aspx, Logout.aspx, and Home.aspx, ofcourse all these share the same web.config file. In my web.config I have:

            and

            but only the Default.aspx is timing out and refreshes. But I want that to happen in the Home.aspx, when no activity is received it must redirect to the Default.aspx. I know I am messing up somewhere, can anybody help me please??? Thanks M

            M Offline
            M Offline
            michaelschmitt
            wrote on last edited by
            #5

            Hello, In the "location path="home.aspx..." section you say that all anonymous users have access to this site (by using allow=?). Use deny instead of allow:

            <location path="Home.aspx">
            <system.web>
            <authorization>
            <deny users ="?"/>
            </authorization>
            </system.web>
            </location>

            Otherwise, this page is not protected. Also, dont mix session and forms authentication timeout. Hope i'm right and this helps.

            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