Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Secure CookiesSecure Cookies
Previous
 
Next
New Post
7/2/2012 1:14 PM
 

Have been searching for ways to make the cookies created for our site through DNN use the secure flag, but to no avail.

Is there a setting in DNN or simple code that I can add (tried the mycookie.secure = true) that will accomplish this so cookies are not transmitted in clear text?  Also, is there any reason they would not show up as secure when client and server are on the same machine?

Thanks,
Scott


Bub
 
New Post
7/2/2012 6:49 PM
 
what cookies do you mean - if they're one's your creating just set the secure property to true. If it's the site auth cookies, you can use requireSSL on the forms auth tag. If it's for all cookies you can use the same for the httpCookie node - see http://security.stackexchange.com/questions/1518/how-to-ensure-that-cookies-are-always-sent-via-ssl-when-using-asp-net-on-iis-7-5

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/2/2012 10:24 PM
 
cathal connolly wrote:
If it's the site auth cookies, you can use requireSSL on the forms auth tag.

 Mainly we want to secure the auth cookies.  I was researching where to set this earlier today before I posted.  Unfortunately, was not able to find it.  I even tried adding myCookie.secure = true, though that did not work either.

Just add requireSSL=true to the following line, as you can see, and will test some more.
<forms name=".DOTNETNUKE" protection="All" requireSSL="true" timeout="600" cookieless="UseCookies" path="/" />

Thanks for your reply,

Scott


Bub
 
New Post
7/3/2012 1:00 PM
 
In testing, after adding the above to the auth forms tag, the host menu stops working. Any clues as to why that would happen? I can remove the requireSSL setting, delete cookies, restart, and the host menu starts working again.

Bub
 
New Post
7/9/2012 1:37 PM
 
no idea i'm afraid, that is a setup that is used by a lot of military/government users and none of them have had issues - please make sure you've got a valid SSL certificate (you might want to check what the requests are in a http proxy such as fiddler)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Secure CookiesSecure Cookies


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out