|
-
Sep 1st, 2008, 05:13 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] Best way to switch between SSL and not?
I would like to test on load if the current URL is SSL or not, if so redirect to SSL. What's the best approach? There are pages that will not require SSL.
Thanks!
-
Sep 2nd, 2008, 01:44 AM
#2
Re: [2005] Best way to switch between SSL and not?
Request.IsSecureConnection will return true or false depending on whether you're on a secure page or not. If it isn't, then you will need to redirect the user.
Response.Redirect("https://" + theRestOfTheUrl)
-
Sep 2nd, 2008, 04:16 PM
#3
Thread Starter
Frenzied Member
Re: [RESOLVED] [2005] Best way to switch between SSL and not?
-
Sep 3rd, 2008, 04:22 PM
#4
Re: [RESOLVED] [2005] Best way to switch between SSL and not?
No problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|