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 timeout doesn't work when sessionState mode is SQL server

Session timeout doesn't work when sessionState mode is SQL server

Scheduled Pinned Locked Moved ASP.NET
securitydatabasesql-serversysadminhelp
2 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.
  • V Offline
    V Offline
    vicky457
    wrote on last edited by
    #1

    Hi, Did anybody have experience the same issue? I am using SQLserver session state with trusted connection as shown below: sessionState mode="SQLServer" sqlConnectionString="data source=MydatabaseServername;integrated security=SSPI" cookieless="false" timeout="5" and form authentication After I login, I wait until sesssion timeout reachs, like 10 minutes, then click on other pages, I still can access. But if I wait for a much longer time, like 30 minutes, then click on other pages, I was logged out. It looks like the session timeout is still using default value 20 minutes, even though I set it as 5 minutes. But I couldn't confirm it. Does anyone have any ideas on it? Thanks in advance!

    N 1 Reply Last reply
    0
    • V vicky457

      Hi, Did anybody have experience the same issue? I am using SQLserver session state with trusted connection as shown below: sessionState mode="SQLServer" sqlConnectionString="data source=MydatabaseServername;integrated security=SSPI" cookieless="false" timeout="5" and form authentication After I login, I wait until sesssion timeout reachs, like 10 minutes, then click on other pages, I still can access. But if I wait for a much longer time, like 30 minutes, then click on other pages, I was logged out. It looks like the session timeout is still using default value 20 minutes, even though I set it as 5 minutes. But I couldn't confirm it. Does anyone have any ideas on it? Thanks in advance!

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      vicky457 wrote:

      I was logged out. It looks like the session timeout is still using default value 20 minutes, even though I set it as 5 minutes. But I couldn't confirm it. Does anyone have any ideas on it?

      Not clearly, but try with setting the session timeout in Session_Start event on global.asax file.


      My Website | Ask smart questions

      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