Why is DotNetNuke registering me with post-ajax requests?

Previously, when I tried to make ajax call for ashx as a non-superuser account (i.e. as a portal user), my web server would return cookies to clear my authorization. I posted a question about this , and it seemed like the answer was to make sure it portalid=xxwas specified in my GET parameters.

However, I just found out that if I add portalid=xxPOST to the request, DotNetNuke seems to ignore and log out of any account other than the superuser.

How can I save authorization during ajax requests for DNN mail messages?

+5
source share
2 answers

, , , , , - , , -url (, portal.domain.com, domain.com/portal).

, 0 domain.com, 1 - domain.com/portal, , .ashx ajax. URL- domain.com/DesktopModules/MyModule/Handler.ashx, /portal/ , DNN , 0 .

GET portal=1, , , POST.

, , , (portal.domain.com), - .

+1

, , - .

  • , ScriptManagerProxy. ascx AJAX, AJAX.
  • , AJAX DNN, " " "". , , , Persistent State State "". - :

    HostSettings set SettingValue = 'P' SettingName = 'PageStatePersister'

. , web.config( ).

  • , , web.config. :

    < system.web > < xhtmlConformance mode = "Legacy" / > </system.web >

0

All Articles