?
Solved

ASP login.asp page

Posted on 2012-03-26
2
Medium Priority
?
267 Views
Last Modified: 2012-03-26
We have a page on our site called login.asp  

How would I go about forcing this page to use HTTPS (ssl) instead of HTTP?
0
Comment
Question by:Tom Knowlton
2 Comments
 
LVL 15

Accepted Solution

by:
pateljitu earned 2000 total points
ID: 37767752
Please try this article:

http://classicasp.aspfaq.com/general/how-do-i-redirect-an-http/request-to-https/

Also what version of IIS are you using.
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 37768197
Perfect!  Thanks!


My eventual solution:

<%@Language="VBSCRIPT"%>
<!--#include virtual="/ForceSSL.inc"-->
Some page

Open in new window


<%
   If Request.ServerVariables("SERVER_PORT")=80 Then
      Dim strSecureURL
      strSecureURL = "https://"
      strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
      strSecureURL = strSecureURL & Request.ServerVariables("URL")
      Response.Redirect strSecureURL
   End If
%>
	

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses
Course of the Month16 days, 10 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question