Current Path : G:/PleskVhosts/mpcdp.in/cmamp.mpcdp.in/cdpp3/App_Code/ |
Windows NT SG2NWVPWEB022 10.0 build 17763 (Windows Server 2016) i586 |
Current File : G:/PleskVhosts/mpcdp.in/cmamp.mpcdp.in/cdpp3/App_Code/Global.asax.vb |
Imports System.Web Imports System.Web.SessionState Imports System.Threading Imports System.Globalization Public Class Global2 Inherits System.Web.HttpApplication Sub Session_Start(ByVal Sender As Object, ByVal E As EventArgs) If Not Request.Cookies("yourCookie") Is Nothing Then Session("MyCulture") = Server.HtmlEncode(Request.Cookies("yourCookie")("languagePref")) Else Session("MyCulture") = "en" Dim aCookie As New HttpCookie("yourCookie") aCookie.Values("languagePref") = Session("MyCulture") aCookie.Expires = System.DateTime.Now.AddDays(21) Response.Cookies.Add(aCookie) End If End Sub Sub Session_OnStart() ''On Session Start End Sub Sub Session_OnEnd() ''On Session End End Sub Sub Application_OnAuthenticateRequest(ByVal Source As Object, ByVal Details As EventArgs) ''Application Authenticate End Sub End Class