Forum Discussion
MS Teams Application HTTP Context Session Changed when Postback
Meghana-MSFT, please note that the issue ONLY happens in Teams 🙂 Mine looks fine in browser.
- YannieDec 19, 2022Copper ContributorHow about the scenario mentioned by ivo-beemster?
They are not using SharePoint add-ins but an external webpage which has used ajax calls. - Meghana-MSFTNov 17, 2022Microsoft
Engineering team has gone through the bug and has said that -
This is not a supported scenario. SharePoint add-ins have not been designed to work in clients embedding SharePoint pages. We do have SharePoint Framework for that scenario.The "SharePoint Add-In" and "Provider Hosted App" combination is an extensibility platform from 2012 or so,and has been getting phased out for the past several years. - Meghana-MSFTNov 08, 2022Microsoft
We have informed the engineering team about this issue, please be assured that I will keep you posted on the updates. 
- ivo-beemsterNov 07, 2022Copper Contributor
we have the same problem. We have created a simple app the loads an external webpage.
The page makes some additional ajax calls to the server.
when we debug on the server:
each ajax call from the teams app has his own session_id.
when we access the page through a browser every ajax call has the same session_id (as it should be)
is there a fix for this issue?
- YannieJul 06, 2022Copper ContributorHI
I have already shared all the steps and logs to u on Feb 08 2022 through Message Box.
I have just sent you some additional information that have sent to Meghana be4. Please check if it helps.
Remember to put click event to the button. - ChetanSharma-msftJul 05, 2022MicrosoftHello Yannie - Can you please share the deploy details, so that we can try it from our end?
- ChetanSharma-msftMay 20, 2022Microsoft
Yannie - We are not able to repro it.
It will be really helpful, if you can provide us a deployed version of SharePoint Add-in for our testing and investigation ? - Meghana-MSFTMar 25, 2022MicrosoftCurrently there are no updates. I will post here if there are any updates.
- YannieMar 25, 2022Copper Contributor
Meghana-MSFT Please let me know if there are any updates, thank you