Check out the following 2 links:
http://www.batisdev.com/admin/test_1images.asp
http://www.batisdev.com/admin/test_2images.asp
First page contain 4 IFRAMES and 1 IMG tags.
Second page contain 4 IFRAMES and 2 IMGs tags.
The problem is that the second IFRAME from the second page
generates fires a new session.
Why?
Dan Popa
Source code for first page:
<code><%@LANGUA GE="VBSCRIPT" CODEPAGE="1252" %>
<%Response.Buff er= True%>
<html>
<head>
<title>IFRAME S and SessionIDs test (with 1 IMG)</title>
<script language="JavaS cript" src="FrameQueue .js"></script>
</head>
<body>
<script>
var frameChain2= new FrameQueue('fra meChain2');
function startFrames(){
frameChain2.res tart();
}
frameChain2.add ("z1", "blank.asp?"+Ma th.random());
frameChain2.add ("z2", "blank.asp?"+Ma th.random());
frameChain2.add ("z3", "blank.asp?"+Ma th.random());
frameChain2.add ("z4", "blank.asp?"+Ma th.random());
//window.onload = startFrames;
</script>
<%
Response.Write( "SessionID: <b>" &
Session.Session ID& "</b><br>")
%>
<style>
IFRAME{width:10 0%; height:60px; border:1px solid blue}
</style>
This button will load the iframes one after each
other:<button onClick="startF rames()">Load
IFRAMES</button> &n bsp;   ; <butto n
onClick="alert( document.cookie )">document.coo kie</button>
<iframe id="z1"></iframe><iframe id="z2"></iframe><iframe
id="z3"></iframe><iframe id="z4"></iframe>
<br>
Image 1:<img src="../images/spacer.gif" width="100"
height="40" border="1" alt=""><br>
</body>
</html>
</code>
<b>Source code for the second page:</b>
<code><%@LANGUA GE="VBSCRIPT" CODEPAGE="1252" %>
<%Response.Buff er= True%>
<html>
<head>
<title>IFRAME S and SessionIDs test (with 2 IMGs)</title>
<script language="JavaS cript" src="FrameQueue .js"></script>
</head>
<body>
<script>
var frameChain2= new FrameQueue('fra meChain2');
function startFrames(){
frameChain2.res tart();
}
frameChain2.add ("z1", "blank.asp?"+Ma th.random());
frameChain2.add ("z2", "blank.asp?"+Ma th.random());
frameChain2.add ("z3", "blank.asp?"+Ma th.random());
frameChain2.add ("z4", "blank.asp?"+Ma th.random());
//window.onload = startFrames;
</script>
<%
Response.Write( "SessionID: <b>" &
Session.Session ID& "</b><br>")
%>
<style>
IFRAME{width:10 0%; height:60px; border:1px solid blue}
</style>
This button will load the iframes one after each
other:<button onClick="startF rames()">Load
IFRAMES</button> &n bsp;   ; <butto n
onClick="alert( document.cookie )">document.coo kie</button>
<iframe id="z1"></iframe><iframe id="z2"></iframe><iframe
id="z3"></iframe><iframe id="z4"></iframe>
<br>
Image 1:<img src="../images/spacer.gif" width="100"
height="40" border="1" alt=""><br>
Image 2:<img src="../images/adminTemplate_r 1_c1.gif"
width="100" height="40" border="1" alt=""><br>
</body>
</html></code>