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. How to handel Session Timeout

How to handel Session Timeout

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecuritytutorial
4 Posts 4 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.
  • E Offline
    E Offline
    Elena2006
    wrote on last edited by
    #1

    Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.

    A S G 3 Replies Last reply
    0
    • E Elena2006

      Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Elena2006 wrote:

      After session timeout if user clicks any link or button it should return to Login page. I am using Master page also.

      You need to check the session value on every page load. if this value is null redirect user to login page,

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • E Elena2006

        Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.

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

        Keep Session timeout in web .config file.It automatically handles session timeout value..! Check the below settings ,Check sessiontomeout..!

        <system.web>
        <authentication mode="Forms">
        <forms loginUrl="Login.aspx"
        protection="All"
        timeout="30"
        name=".ASPXAUTH"
        path="/"
        requireSSL="false"
        slidingExpiration="true"
        defaultUrl="default.aspx"
        cookieless="UseDeviceProfile"
        enableCrossAppRedirects="false" />
        </authentication>
        </system.web>

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

        1 Reply Last reply
        0
        • E Elena2006

          Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.

          G Offline
          G Offline
          Gamzun
          wrote on last edited by
          #4

          It would be better to use asp.net Profile. Google about it and you'll get understanding of it.

          Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

          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