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. exprie a web page

exprie a web page

Scheduled Pinned Locked Moved Web Development
csharpasp-netquestion
3 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.
  • C Offline
    C Offline
    cmarmr
    wrote on last edited by
    #1

    how do i make a web page expire and send the user back to the login screen i'm useing csharp with asp.net thanks chad

    V A 2 Replies Last reply
    0
    • C cmarmr

      how do i make a web page expire and send the user back to the login screen i'm useing csharp with asp.net thanks chad

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #2

      in the web.config set the "timeout" attribute of the sessionstate element. eg. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20" /> will expire the session after 20 minutes. hope this helps. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

      1 Reply Last reply
      0
      • C cmarmr

        how do i make a web page expire and send the user back to the login screen i'm useing csharp with asp.net thanks chad

        A Offline
        A Offline
        Andrew Quinn AUS
        wrote on last edited by
        #3

        Hi, As well as the above solution, if you wanted the page to automatically navigate back to the logon screen (say if someone left the page open for too long), then insert the following meta tags in your HTML pages

        <html>
        ...
        ...

        ...

        This would navigate back to the login page after 10mins has elapsed. Hope this helps, Andy

        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