-
Notifications
You must be signed in to change notification settings - Fork 0
/
Global.asax
46 lines (36 loc) · 1.83 KB
/
Global.asax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<%@ Application Language="VB" %>
<%@ Import Namespace="System.Web.Routing" %>
<%@ Import Namespace="System.Web.Http" %>
<script runat="server">
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
' instantiate paypal variables
Application.Add("paypalUser", "alan_1345295613_biz_api1.functionfirst.co.uk")
Application.Add("paypalPwd", "1345295653")
Application.Add("paypalSignature", "ARXIhtcX7pMA7.bx2ERwIEeOnZnxAppM9Z63ZNdnJQJwyIDewS.RUztt")
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a new session is started
Session("filepath") = "C:\HostingSpaces\getbuild\buildmateapp.com\wwwroot\"
' Set a Session Start Time
' This is only important to assure we start a session
Session("Start") = Now()
Session("sessionid") = Day(Now()) & Month(Now()) & Year(Now()) & Session.SessionID
Session("lockedAccount") = False
' Set the Locale Identifier
' Converts currency, date and time to British English format (£) (dd/mm/yyyy) (hh:mm:ss)
Session.LCID = 2057
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
End Sub
</script>