Home > Net > The iframe has resulted in the session for failure
The iframe has resulted in the session for failure
Time:09-24
If I wrote two interfaces, in the first interface to save a data like this: the HttpContext. Current. The Session (" uid ")="1"; I read the figures in the second interface, under normal circumstances I open a page in your browser, request, in turn, these two interfaces is no problem, I put the program on the IIS server, write a page in Vs, inside is & lt; The iframe id="frame1" width="500" height="500" SRC="http://192.168.2.158:89/test1.html" & gt; </iframe> To perform these two interfaces, found that the data is null, after tests found that the request first interface to create a sessionId sessionId and the second interface is different, in principle, should be the same
CodePudding user response:
A great god for help
CodePudding user response:
Iframe URL and main website URL is the same? Inconsistent session should can't pass,
CodePudding user response:
Do not agree if you can pass parameters, In the iframe in acquiring,