Search code examples
dotnetnuke

What does dnn.js SetCookie do


Our application is in Dotnetnuke 4.9.2 version,

In our recent security audit they found that in file DNN.js it sets some cookies in SetCookie method,

I need some info on why DNN.js uses this file for ?

Can I comment this out, if so what would be the complications >

Any references would be helpful

Thanks


Solution

  • You should really upgrade to a newer version of DotNetNuke as there are a lot of security issues that have been resolved in the 4 or 5 years since DNN 4 was last released.

    The cookies are likely setting things like "Visibility" on modules that can be expanded or collapsed, or setting cookies for if you have the Control Panel in View/Edit/Layout mode