FAQ/Session-Start.md
... ...
@@ -0,0 +1,16 @@
1
+#Session_Start()
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+_**Note:** This method is obsolete to the Izenda platform. Please use [[InitializeReporting|/FAQ/InitializeReporting]] instead.
8
+
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
+
11
+void Session_Start(object sender, EventArgs e)
12
+{
13
+ Izenda.AdHoc.AdHocSettings.LicenseKey = "Some License Key";
14
+ Izenda.AdHoc.AdHocSettings.SqlServerConnectionString = "Some Connection String";
15
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
16
+}
... ...
\ No newline at end of file