How do I set which pages will run under SSL?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 лет назад
Hi, I like how the login and shopping cart functions initiate SSL, but I have some custom pages that I'd like to run under SSL as well.

Is there some place to specify which pages initiate SSL? In the admin console? In web config?

I'm an intermediate .NET developer, so if you could just point me in the right direction...

Thanks,

- Joe

PS, looking forward to putting my site in the gallery; it's looking good.
14 лет назад
Never mind, figure it out. Found the mechanism in the code-behind of each page:


if (!Page.IsPostBack)
{
     CommonHelper.EnsureSSL();
}


and

if (!Page.IsPostBack)
{
     CommonHelper.EnsureNonSSL();
}



Nifty.

Curious though, why didn't you guys set EnsureSSL() on the contact form?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.