Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mvc3 https & http

I am converting an asp.net application into mvc3. Lets say I have a sign in page that requires https and every other page only needs http how can I redirect the signin to https and keep all the other pages on http?

Any suggestions would be great!

like image 961
Diver Dan Avatar asked Feb 24 '11 21:02

Diver Dan


People also ask

Can you play UMvC3 online?

To my absolute surprise, Kevin and I were playing UMvC3 seamlessly online through Parsec. We were pulling off the game's most difficult sequences, such as Dr. Doom's TAC infinites or Firebrand's wall cling fireballs with great ease.

Is mvc3 still active?

It's still being played.


1 Answers

The RequireHttpsAttribute class may be what you want.

[RequireHttps]
public ActionResult SignIn() {
   return View();
}
like image 191
Bertrand Marron Avatar answered Sep 28 '22 10:09

Bertrand Marron