Getting Security Information
Written by Eric Smith, Northstar Computer Systems LLC
In a site I built recently, I only wanted users to view the site via an HTTPS connection. If the user wasn't connected to the secure port, I needed to send them to that port to hit the site. The SERVER_PORT value in the ServerVariables collection will tell your ASP file what port the user is connected on. In my case, the default port of 80 was not secured, so I simply used Response.Redirect to send the user to the secured site, which uses port 443 (default value).
Keywords: [
Security
]
Publication Date: 11/1/2000
|