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. ASP.NET 4.0 How to make session values alive still user logout.

ASP.NET 4.0 How to make session values alive still user logout.

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-nethelp
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
    VishwaKL
    wrote on last edited by
    #1

    Hi guys, I am getting a problem one of my web site. My site having login screen, user should login to do operations. so this site automatically time out on 20 min. because ISS ideal time default 20 min as i read in one of the article, and i got solution to make it '0' to never expire, but still my session expire on 20 min. And another solution i have to make session state =60/what ever time i required but this is also not helping, me. So please guide me the solution How to make session values alive still user logout. Thanks and regards Vishwa

    S 1 Reply Last reply
    0
    • V VishwaKL

      Hi guys, I am getting a problem one of my web site. My site having login screen, user should login to do operations. so this site automatically time out on 20 min. because ISS ideal time default 20 min as i read in one of the article, and i got solution to make it '0' to never expire, but still my session expire on 20 min. And another solution i have to make session state =60/what ever time i required but this is also not helping, me. So please guide me the solution How to make session values alive still user logout. Thanks and regards Vishwa

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      VishwaKL wrote:

      How to make session values alive still user logout.

      Not advisable as you will be blocking sever memory and can be very bad when multiple people connect.

      VishwaKL wrote:

      make it '0' to never expire, but still my session expire on 20 min

      Session timeout is set in Web.Config file. Default is 20 min. Change it to as per need there and will be used by IIS. You can also have FormsAuthentication timeout if you are using FormsAuthentication. Following is sample change in Web.Config file:

      <system.web>
      <authentication mode="Forms">
      <forms timeout="55"/>
      </authentication>

      <sessionState timeout="60"  />
      

      </system.web>

      Sandeep Mewara Microsoft ASP.NET MVP 2012 & 2013 [My Blog]: Sandeep Mewara's Tech Journal! [My Latest Article]: HTML5 Quick Start Web Application

      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