Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a web application that has pages accessed by everyone and part of the application is accessed based on user roles. I implemented Form based Authentication with Role based security. Now client wants to add SSL to the login page. I have some queries regarding how to go for this requirement. I have never done any work on SSL so this is the learning curve for me.

1 > Is it possible to add SSL for just part of the web application and not the whole application. ? I just want to SSL enable Login.aspx page and leave rest of the application accessible without SSL.

2 > At the moment my login control is in a Model Popup Extender. Technically it is not a page but it resides in a Master page as a hidden panel and when user clicks on the login menu button it will pop up. I am not sure is it possible to add SSL to just model popup extender or do I have to create a Login.aspx page and put login control there ?

3> Any good resource to implement this will be appreciated.
Posted
Comments
khalid mehmood 3-Nov-10 7:58am    
check these links might help you
http://www.codeproject.com/KB/web-security/WebPageSecurity_v2.aspx


see Segregate Secure and Non-Secure Content
on
http://www.guidanceshare.com/wiki/ASP.NET_2.0_Performance_Guidelines_-_Security_Considerations
virang_21 3-Nov-10 17:23pm    
Thank you for the links . I will check it and let you know how I fare with the issue.

1 solution

Hi,

Please navigate to this link given below, according to me this is the most simplest solution to your problem
http://www.xdevsoftware.com/blog/post/Redirect-from-Http-to-Https-in-ASPNET.aspx[^]

Hope this will help
 
Share this answer
 
Comments
virang_21 3-Nov-10 17:23pm    
Thank you for the link . I will check it and let you know how I fare with the issue.
virang_21 3-Nov-10 20:44pm    
This is 10 on 10.. Worked like a charm. I have to figure out about Model popup extender now. This solution works fine with just a page or directory needing SSL. Thanks a lot.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900