Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 592
  • Last Modified:

How to turn off identity impersonate on a page level

I want to turn off impersonate on a single asp.net page. Can someone tell me how to do that?
0
NickMalloy
Asked:
NickMalloy
  • 2
1 Solution
 
tusharashahCommented:
One of the way of doing that could be thru web.config:

----------------------------------------------------------------
<configuration>
<system.web>
           ....
          ......
</system.web>


<location path="YourPage.aspx">
  <system.web>
       <authorization>
          <identity impersonate="false"/>
       </authorization>
  </system.web>
</location>

</configuration>
----------------------------------------------------------------

-tushar
0
 
NickMalloyAuthor Commented:
I get an error using this saying that idenity needs to be between deny or allow tags. How would that look?
0
 
tusharashahCommented:
Modify it like following:

<location path="YourPage.aspx">
  <system.web>
          <identity impersonate="false"/>
  </system.web>
</location>

-tushar
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now