473,405 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

IFRAMES and SessionIDs problems

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><%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%Response.Buffer= True%>
<html>
<head>
<title>IFRAMES and SessionIDs test (with 1 IMG)</title>
<script language="JavaScript" src="FrameQueue.js"></script>
</head>
<body>
<script>
var frameChain2= new FrameQueue('frameChain2');
function startFrames(){
frameChain2.restart();
}
frameChain2.add("z1", "blank.asp?"+Math.random());
frameChain2.add("z2", "blank.asp?"+Math.random());
frameChain2.add("z3", "blank.asp?"+Math.random());
frameChain2.add("z4", "blank.asp?"+Math.random());
//window.onload = startFrames;
</script>
<%
Response.Write("SessionID:<b>" &
Session.SessionID& "</b><br>")
%>
<style>
IFRAME{width:100%; height:60px; border:1px solid blue}
</style>
This button will load the iframes one after each
other:<button onClick="startFrames()">Load
IFRAMES</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button
onClick="alert(document.cookie)">document.cookie</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><%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%Response.Buffer= True%>
<html>
<head>
<title>IFRAMES and SessionIDs test (with 2 IMGs)</title>
<script language="JavaScript" src="FrameQueue.js"></script>
</head>

<body>
<script>
var frameChain2= new FrameQueue('frameChain2');
function startFrames(){
frameChain2.restart();
}
frameChain2.add("z1", "blank.asp?"+Math.random());
frameChain2.add("z2", "blank.asp?"+Math.random());
frameChain2.add("z3", "blank.asp?"+Math.random());
frameChain2.add("z4", "blank.asp?"+Math.random());
//window.onload = startFrames;
</script>
<%
Response.Write("SessionID:<b>" &
Session.SessionID& "</b><br>")
%>
<style>
IFRAME{width:100%; height:60px; border:1px solid blue}
</style>
This button will load the iframes one after each
other:<button onClick="startFrames()">Load
IFRAMES</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button
onClick="alert(document.cookie)">document.cookie</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_r1_c1.gif"
width="100" height="40" border="1" alt=""><br>

</body>
</html></code>
Jul 19 '05 #1
0 2059

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: maxim vexler | last post by:
I'm reading a lot of talks lately about the term iFrame and with your permission would like to ask a few question about that : - what is iFrame, i mean what is it good for ? - does all the...
7
by: Scott | last post by:
Hello All, I've been reading all of the various issues with Iframes in netscape. I have tried all of the various fixes posted, and have even implemented both an iframe and ilayer. My problem is...
2
by: ja ba | last post by:
are they not valid i css? i'm getting this error: Target: http://www.infectdesign.com Please, validate your XML document first! Line 71
5
by: Frances | last post by:
I need to replace iframes acc. to what option user chooses in a sel obj.. but figured have to load a blank iframe when pg loads so I can replace it.. (iframe gets put in a pre-existing div..) this...
2
by: Guadala Harry | last post by:
1. Are IFrames supported only in uplevel versions of IE? If not IE exclusively, what browsers support IFrames? 2. Are IFrames going to be supported in the future - as far as anyone knows - or...
7
by: Oleg | last post by:
I have a web form let's say 'YYZ.aspx'. It has an iframe in it. When it loads it shows progress bar in IE this way: loading for page then again loading for page in iframe. This part is fine....
19
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up...
2
by: tequilamala | last post by:
I was having problems with google, when someone would search for one of my pages the iframe pages would pop up. So I attempted to fix this problem by adding the javascript below to all of my...
13
by: trfilmographer | last post by:
hi fellow web developers! I have a bit of a concern. I developed a main page that is a page that contains 3 iframes - a header iframe, a body iframe, and a footer iframe. My concern is that if...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.