473,320 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

requireSSL not working on web site

I have a web site that is configured for FORMS authentication. I have the "requireSSL" parameter set to "true" and the authorization set to "deny" any unauthenticated users. For whatever reason, though, when I go to the site using HTTP it never redirects me to HTTPS.

What should I be looking for to fix this problem? Doesn't the requireSSL automatically redirect to HTTPS on an HTTP request?

Thanks
Nov 18 '05 #1
2 2629
The requireSSL property of the Forms authentication doesn't actually
redirect you. The property tells whether or not the cookie that the Forms
authentication creates is transmitted using https and doesn't do anything
about redirection.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"javatopia" <an*******@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
I have a web site that is configured for FORMS authentication. I have the "requireSSL" parameter set to "true" and the authorization set to "deny" any
unauthenticated users. For whatever reason, though, when I go to the site
using HTTP it never redirects me to HTTPS.
What should I be looking for to fix this problem? Doesn't the requireSSL automatically redirect to HTTPS on an HTTP request?
Thanks

Nov 18 '05 #2
Here's some code that might help - put it in your page load event:

If Not Request.IsSecureConnection And Not Request.Url.IsLoopback Then
Response.Redirect(Regex.Replace(Request.Url.ToStri ng, "http",
"https")
End If

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:u7*************@tk2msftngp13.phx.gbl...
The requireSSL property of the Forms authentication doesn't actually
redirect you. The property tells whether or not the cookie that the Forms
authentication creates is transmitted using https and doesn't do anything
about redirection.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"javatopia" <an*******@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
I have a web site that is configured for FORMS authentication. I have
the "requireSSL" parameter set to "true" and the authorization set to "deny" any unauthenticated users. For whatever reason, though, when I go to the site
using HTTP it never redirects me to HTTPS.

What should I be looking for to fix this problem? Doesn't the
requireSSL automatically redirect to HTTPS on an HTTP request?

Thanks


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jeff Johnson | last post by:
I'm using forms authentication to protect a subfolder within my site. I've got it working fine except for two issues: (1) When I do a RedirectFromLogin page I have to put a cookie path ("/"...
8
by: Hardy Wang | last post by:
Hi: Is it possible for me to create/open web application from remote machine other than port 80? And create application directly under virtual web site instead of creating a virtual directory?...
8
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping...
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
1
by: Otto Blomqvist | last post by:
Hello ! I'm writing a DB app using Delphi 7. The PostGres Delphi components we are using are PostGreDAC from MicroOLAP, the latest ODBC drivers (from postgre.org)and PostGres 7.2.2. The...
0
by: venkatbo | last post by:
Hi folks, I'm trying to get lighttpd, fastcgi & python working on a 2.4.21.x i686 linux system. I tried following the steps in: ...
0
by: aBs0lut30 | last post by:
Hi Guys, I am working on a site and recently added several client callbacks to the project. Everything works GREAT while debugging the site in visual studio. Last night I copied the site up to our...
1
by: tshad | last post by:
I have a site with SSL connected and in my IIS 6 properties window the port is set to 4434 and it was working OK. I then accidently put 4434 in another site on a machine and it quit working. I...
0
by: gagonm | last post by:
Hi For past few days audit of my application is going.There SSL cookie issue is always used. On search Net I fount that when authentication mode is form we can use RequireSSL property . But...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.