<iframe width="100%" scrolling="no" height="100%" frameborder="no" src="about:blank" id="snap_com_shot_preview" name="snap_com_shot_preview" style="border: 0pt none ; margin: 0pt; padding: 0pt; font-style: normal; font-weight: normal; font-family: "trebuchet ms",arial,helvetica,sans-serif; float: none; position: absolute; left: 0px; top: 0px; line-height: normal; background-image: url(http://i.ixnp.com/images/v2.26.1/t.gif); background-color: transparent; z-index: 99999;" />
<iframe width="100%" scrolling="no" height="100%" frameborder="no" src="about:blank" id="snap_com_shot_preview" name="snap_com_shot_preview" style="border: 0pt none ; margin: 0pt; padding: 0pt; font-style: normal; font-weight: normal; font-family: "trebuchet ms",arial,helvetica,sans-serif; float: none; position: absolute; left: 0px; top: 0px; line-height: normal; background-image: url(http://i.ixnp.com/images/v2.22.9/t.gif); background-color: transparent; z-index: 999999;" />
This article describes how to set-up an ASP.NET project in order to use MySql as its session state store provider.
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="MySqlSessionServices" connectionString="Database=<name of database>; Data Source=<host>; User Id=<login>; Password=<password>"/></connectionStrings>
<system.web>
<sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" customProvider="MySqlSessionProvider"><providers>
<add name="MySqlSessionProvider" type="Samples.AspNet.Session.MySqlSessionStateStore" connectionStringName="MySqlSessionServices" writeExceptionsToEventLog="false"/></providers></sessionState>
</system.web>
</configuration>
You can check it out at www.kimpel.com ... it works like a charm
.
Please do not hesitate to contact me if you have any questions and/or comments.![]()
2007-09-20: initial version
2007-10-17: updated link to sources
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||