I have a asp.net site, which users can login and members can get report or print page by Ctrl+P.
Recently when my members open my site in IE and try to print, they are logged out!
why? because IE print dialog send some request to server without session cookie, so StateServer release new session for this client and then user logged out.
Why print dialog sent request? I don't know, but i guess IE print dialog try to renders page and ready it for print.
Why print dialog don't sent current session cookie? because new update of .net set SameSite=lax for session cookie, so requests from print dialog can't send current session cookie. https://support.microsoft.com/en-us/help/4524419/kb4524419
How can i prevent IE print dialog from send request? or how can i force IE print dialog to send same session cookie?
Any idea?
Edited: I create a sample project to show this problem. you can download my project and host on IIS, then open Default.Aspx and try to print that page in IE(or edge). You'll seen my problem. https://easyupload.io/w6vvpy