@Bhatu Patil , If the issues are coming up after moving it to the production server, then it would be interesting to note down if there are any type of difference between the production and the dev environment, in terms of the versions of the libraries or dependencies being used there.
If using old OWIN middleware version, likely it is hitting the Katana bug for OWIN middleware. You can read more on that here.
https://github.com/aspnet/AspNetKatana/wiki/System.Web-response-cookie-integration-issues
Also you can try referencing to the following link for more details:
"https://blogs.aaddevsup.xyz/2019/11/infinite-sign-in-loop-between-mvc-application-and-azure-ad/"
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Do let us know if that helps.
If there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as "Answer" if the above response helped in answering your query.