This project is read-only.

Set session variable

Sep 13, 2010 at 9:29 AM


is it possible to use mdo:session to write, not only read, a session variable? I'm trying via xsl:execute but cannot get my session variable written.


Sep 13, 2010 at 10:34 AM


No at the moment.

I plan to provide access to dictionaries (HttpRequest.Context, HttpContext.Session, ...) via mdo:aspnet and mdo:assign extensions.

This is easy to implement so I'll publish new release on this week.

Sep 15, 2010 at 11:23 AM


You now have read/write access to all properties of HttpContext.Current using mdo:assign and mdo:aspnet. Thiese functons also support indexed properties.

Property path like Context.Whatever is mapped to HttpContext.Current.Whatever

Description and samples can be found here;

Sep 15, 2010 at 12:51 PM


this is really great! I just tested this simple call to get the user IP address:

<xsl:value-of select="mdo:aspnet('Context.Request.ServerVariables[remote_addr]')" />

Off course it works perfectly :-)


It's hard to have new ideas now :-)