Forms Authentication across virtual directories

前端 未结 1 686
深忆病人
深忆病人 2021-01-19 04:52

I am trying to share forms auth from a root application to a sub application running in a virtual directory. I am having trouble with authentication in the subsite.

1条回答
  •  我在风中等你
    2021-01-19 05:36

    In your web.config files, set a common machine key between the projects so that the 2 domains share validation and decryption keys.

    example:

    
    

    0 讨论(0)
提交回复
热议问题