locked
Session lost when F5 is pressed in Browser RRS feed

  • Question

  • User-319875149 posted

    Hello All, I have a MVC3 Application running in Windows Server 2008 R2 and I'm using Internet Explorer 9.0.

    I have noticed following problem. When pressing Browser's F5 button Session seems to vanish. Next time Application access Session variables they seems to be lost.

    I have increased Session-Timeout value, that doesn't help.

    Are there any other configuration to do aither into Web.Config or IIS 7?

    Thanks for answers,

    Br

    Mike

    Wednesday, October 10, 2012 9:41 AM

Answers

  • User1957004874 posted

    You might also want to check why your app pool is getting recycled, is your application throwing exception which are not handled or memory is bottleneck. You can look here for some common reasons.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 10, 2012 9:15 PM

All replies

  • User1779161005 posted

    Sounds like you are doing in-proc session and it's getting lost if the app recycles. You should look into configuring it out of proc (in SqlServer or the ASP.NET State Service).

    Wednesday, October 10, 2012 10:08 AM
  • User-319875149 posted

    Thanks, I try it.

    Mike

    Wednesday, October 10, 2012 10:16 AM
  • User1957004874 posted

    You might also want to check why your app pool is getting recycled, is your application throwing exception which are not handled or memory is bottleneck. You can look here for some common reasons.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 10, 2012 9:15 PM