views:

20

answers:

1

I have an application developed on MVC2 but I need it to change from HTTP to HTTPS after authentication. How do I manage that and where do I have to put the code?

Thank you,

Ignacio

A: 

Add the filter

[UseHttps]

to your action method

Clicktricity
to every action method I need to be using HTTPS? Or with doing it only with the authentication method will be enough..?
met.lord
You'll probably want to add the filter to every action method that needs to run through HTTPS, or if its every action method in a controller then you could apply the filter at the controller level.
Clicktricity