<%@ Page Language="vb" %> <html> <head> <title>Creating Absolute URLs for cookieless sessions in ASP.NET</title> <script runat="server"> Sub Page_Load() Dim NewPath As String NewPath = Request.Url.Scheme & "://" & Request.Url.Host & _ Response.ApplyAppPathModifier(Request.Url.AbsolutePath) myMessage.Text = "Modified Absolute URL = " & NewPath End Sub </script> </head> <body> <asp:label id="myMessage" runat="server"/> </body> </html>