Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click Session("name") = TextBox1.Text Response.Redirect("profile.aspx") End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load dim timeLogger as integer Label1.Text = Session("name") Session.Timeout = 1 timeLogger = Session.Timeout Label2.Text = timeLogger 'If timeLogger = timeLogger Then ' Response.Redirect("index.aspx") 'End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)