squi
09-20-2006, 01:18 PM
I'm trying to extend a session timeout and, in theory, all I have to do is translate minimal VB into PHP, but I know not VB.
Here's the URL reference:
http://www.pascarello.com/AjaxSessionTimer.aspx
Can anyone translate this?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="AjaxSessionUpdate.aspx.vb" Inherits="SessionTimerVB.AjaxSessionUpdate"%>
and this AjaxSessionUpdate.aspx.vb
Public Class AjaxSessionUpdate
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.ContentType = "text/html"
Response.Write("Session Updated - Server Time:" & Date.Now.ToString)
End Sub
End Class
Thanks
--san
Here's the URL reference:
http://www.pascarello.com/AjaxSessionTimer.aspx
Can anyone translate this?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="AjaxSessionUpdate.aspx.vb" Inherits="SessionTimerVB.AjaxSessionUpdate"%>
and this AjaxSessionUpdate.aspx.vb
Public Class AjaxSessionUpdate
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.ContentType = "text/html"
Response.Write("Session Updated - Server Time:" & Date.Now.ToString)
End Sub
End Class
Thanks
--san