Page view counter

sessionState issue

Last post 12-27-2007 4:35 PM by abombss. 2 replies.

Sort Posts:

  • sessionState issue

    12-27-2007, 3:28 AM
    • Loading...
    • KaziManzurRashid
    • Joined on 03-09-2003, 3:04 PM
    • Dhaka, Bangladesh
    • Posts 882
    • Points 4,782

    I do have a bad habit. When starting a new Web Application, the first thing I do, add/change the followings in the web.config file:
     

    <sessionState mode="Off"/>
     
    <pages enableViewState="false" enableSessionState="false">
     
    But the new MVC framework seemd very much depended upon the session. You can't even run it disabling the session.
    Any thoughts?
    Long Live .NET
    Kazi Manzur Rashid (Amit)
    _________________________
    Web: http //dotnetshoutout.com
    Blog: http://weblogs.asp.net/rashid
    Twitter: http://twitter.com/manzurrashid
  • Re: sessionState issue

    12-27-2007, 8:33 AM
    • Loading...
    • ChadThiele
    • Joined on 04-27-2003, 2:43 AM
    • Japan
    • Posts 274
    • Points 983

     Excellent question, I too tried this...

    Did I answer your question(s)? Phweew...
  • Re: sessionState issue

    12-27-2007, 4:35 PM
    • Loading...
    • abombss
    • Joined on 06-27-2006, 12:13 PM
    • Chicago, IL
    • Posts 164
    • Points 574

     The TempData relies on session and so do some of the other helpers.  I agree, you should be able to run without SessionState if you want to.  Make sure Phil & Friends know about this one.

    Adam Tybor -- abombss.com
Page 1 of 1 (3 items)