FAQ/Session-Start.md
... ...
@@ -8,9 +8,11 @@ _**Note:** This method is obsolete to the Izenda platform. Please use [[Initiali
8 8
9 9
This code sample turns on the customization capabilities by setting the license key and connection string in the Session_Start(). This must be done in order to allow any other custom code to run. The Session_Start() method is called when a user begins a new session. The length of a session is determined by IIS and has a default length of 20 minutes.
10 10
11
+```csharp
11 12
void Session_Start(object sender, EventArgs e)
12 13
{
13 14
Izenda.AdHoc.AdHocSettings.LicenseKey = "Some License Key";
14 15
Izenda.AdHoc.AdHocSettings.SqlServerConnectionString = "Some Connection String";
15 16
Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
16
-}
... ...
\ No newline at end of file
0
+}
1
+```
... ...
\ No newline at end of file