Last post Jun 18, 2009 11:00 AM by romu0
Jan 26, 2007 10:14 PM|mbeauregard|LINK
I'm working on a project that is using IronPython for ASP.NET and can't seem to get simple session state to work. I don't know if this has anything to do with the IRequiresSessionState marker interface not being implemented in the HttpHandler used by the
CTP or maybe I'm just doing something wrong.
I have configured my web.config to enable session state like so:
<pages enableSessionState="true" compilationMode="Auto" pageParserFilterType="Microsoft.Web.IronPython.UI.NoCompileCodePageParserFilter"/>
<sessionState mode="InProc" cookieless="false" timeout="120"/>
ASP.NET IronPython sessionState
Jan 26, 2007 10:33 PM|ask_Scotty|LINK
Hello my friend,
I have not tried IronPython but what I would do is try the other modes of session state besides InProc. Read up on this as this gets quite complicated. By the way, 120 minutes per session is excessive. In a live environment serving many users, this would
drain the server memory. The default of 20 should suffice.
Jan 27, 2007 07:24 AM|qingye|LINK
There seems to be an issue with enabling sesstion state via pages/enableSessionState setting in web.config. We will investigate. For now, Michael, have you tried to enable it from page directive on the aspx file? For example,
I was able to get below code working on an IronPython page:
"some test value")
settings in <sessionState> section are all effective.
Please let us know if this doesn't help.
Jan 28, 2007 07:11 PM|mbeauregard|LINK
Setting enableSessionState in the page directive works. Thanks for your help.
Jun 10, 2007 05:16 PM|NirvanaViper|LINK
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="insertcode.aspx.cs" Inherits="TinyMCE_jscripts_tiny_mce_plugins_insertcode_insertcode" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Jul 25, 2007 02:03 PM|Kaan|LINK
Hi Viper do u use tinyMCE in an updatepanel?
Jun 18, 2009 10:35 AM|romu0|LINK
i have a base class (in the App_Code folder) derived from System.Web.UI.Page; this base class does not have a aspx page for itself.
but other aspx-pages derive from the base class.
i cannot use Session in the base class.
i tried <pages buffer="true" enableSessionState="true" /> and <pages enableSessionState="true" /> in the webconfig (under node <system.web>) but then i get an 500 internal server error, for every page in the project! i use Asp.net 2 and VS2008!
Jun 18, 2009 10:41 AM|romu0|LINK
server error 500 is now gone; but cannot i use Session or base.Session in my base class? the base class is in the App-Code folder and is derived from System.Web.UI.Page.
Jun 18, 2009 11:00 AM|romu0|LINK
System.Web.SessionState.HttpSessionState session = HttpContext.Current.Session;