Set session variable

Developer
Sep 13, 2010 at 8:29 AM

Hello,

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.

 

Coordinator
Sep 13, 2010 at 9:34 AM

Hi,

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.

Coordinator
Sep 15, 2010 at 10:23 AM

Alberto,

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; http://xsltdb.com/XsltDb/Help/ASPNET/Assign.aspx

Developer
Sep 15, 2010 at 11:51 AM

Anton, 

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 :-)