473,748 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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><%@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>&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;<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>&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;<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>
Jul 19 '05 #1
0 2099

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

Similar topics

10
3934
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 popular browsers support it (mostly mozilla & the much hated IE, google says the do but nothing is better that experienced answer) - iFrames replaces the old frames once used in html to show a number of pages in a single windows, right ? - what are...
7
3691
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 that no matter which i use, i can access the src before and after i change it, but the page never displays. in IE6 it works no matter how i access it. here is the code that is changing it: function InternalNav(sPage) {
2
3033
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
2232
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 is approach.. I'm having some problems and would appreciate some help.. thank you very much... var selItem; var ifrCurr; var div = document.getElementById("divPricing"); // this var not being read inside functions..
2
2095
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 have they been deprecated and will no longer be supported in the future? Please note that I'm *not* asking for opinions on the merits of using IFrames or IFrames vs regular framesets or any other such...
7
5496
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. Problem is when I put page 'YYZ.aspx' in iframe of another page, let's say 'Home.aspx'. In short: (page (page in iframe(page in iframe) ) ) Progress bar shows ones (fast), then second time(kind of fast) and then third time. And this time it never...
19
5942
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 the page but I find that the iframes interfere with the getting the mouse coords from the screen which is essential in moving the scroll bar around. My test html is given below. With the iframe hidden the mouse coords are obtainable. With the...
2
1204
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 iframes. I had to do a bunch of stuff like putting my default page in the Pages folder because i couldn't get to the root directory with the script below. Now when you search and click on the results itll take you to the default.htm in the Pages folder...
13
1464
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 search engines can only read the body content on the body.html So... I want to write something for these body.htmls so that if the person clicks through a search engine link to go directly to the body.html page, they instead will be...
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9558
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9331
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9253
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6798
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2216
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.