473,738 Members | 3,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Netscape : ASP Session variables across frames not accessible ?

I am designing a site for a client where I have a frameset and 3
frames (all in ASP). I am creating session variables in the frameset
that need to be accessed in the frames. It seams that in Netscape
(4.75), the Frameset Session variables are not defined when accessed
in the frames. Why and how to fix this ?

Take these for example. The only session variable contents displayed
right are the ones defined in the actual frame.

This only happens in Netscape. IE6 has no problems. I only have NE4.75
and IE6 on my PC.

I need to find either an answer, a fix or workaround a.s.a.p.

=============== =============== =============== ===========
Frameset
=============== =============== =============== ===========

<% @ Language=VBScri pt %>
<% session("index" )="index" %>
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<frameset rows="156,*" frameborder="NO " border="8" framespacing="0 "
cols="*">
<frame name="topFrame" scrolling="NO" noresize src="top.asp" >
<frame name="mainFrame " src="bot.asp">
</frameset>
<noframes>
<body bgcolor="#FFFFF F" text="#000000">

</body>
</noframes>
</html>

=============== =============== =============== =
Top Frame
=============== =============== =============== =
<% @ Language=VBScri pt %>
<% session("top")= "top" %>
<html>
<head>
<title>top</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFF F" text="#000000">
<p>Index=<% response.write session("index" ) %></p>
<p>Top=<% response.write session("top") %></p>
<p>Bot=<% response.write session("bot") %></p>
</body>
</html>
=============== =============== =============== =
Bot Frame
=============== =============== =============== =
<% @ Language=VBScri pt %>
<% session("bot")= "bot" %>
<html>
<head>
<title>bot</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFF F" text="#000000">
<p>Index=<% response.write session("index" )%></p>
<p>Top=<% response.write session("top")% ></p>
<p>Bot=<% response.write session("bot")% ></p>

</body>
</html>
Jul 19 '05 #1
4 4667
A Web Master wrote on 23 jan 2004 in
microsoft.publi c.inetserver.as p.general:
I am designing a site for a client where I have a frameset and 3
frames (all in ASP). I am creating session variables in the frameset
that need to be accessed in the frames. It seams that in Netscape
(4.75), the Frameset Session variables are not defined when accessed
in the frames. Why and how to fix this ?


Session variables have nothing to do with a browser.
ASP is serverside and has nothing to do with frames.

If(!!!) both frame page are called in the same session,
the session variable MUST be available.

But your top and bottom frames cannot both read the session variable
declared by the other, because one of them usually runs prior to the other.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
Frames? Do those atrocities still exist?

In any case, no, there is no guarantee that multiple frames will share the
same session. They might each have their own session, or as Evertjan
alluded, it might be an order of operations thing...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"A Web Master" <fo***********@ hotmail.com> wrote in message
news:d2******** *************** ***@posting.goo gle.com...
I am designing a site for a client where I have a frameset and 3
frames (all in ASP). I am creating session variables in the frameset
that need to be accessed in the frames. It seams that in Netscape
(4.75), the Frameset Session variables are not defined when accessed
in the frames. Why and how to fix this ?

Take these for example. The only session variable contents displayed
right are the ones defined in the actual frame.

This only happens in Netscape. IE6 has no problems. I only have NE4.75
and IE6 on my PC.

I need to find either an answer, a fix or workaround a.s.a.p.

=============== =============== =============== ===========
Frameset
=============== =============== =============== ===========

<% @ Language=VBScri pt %>
<% session("index" )="index" %>
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<frameset rows="156,*" frameborder="NO " border="8" framespacing="0 "
cols="*">
<frame name="topFrame" scrolling="NO" noresize src="top.asp" >
<frame name="mainFrame " src="bot.asp">
</frameset>
<noframes>
<body bgcolor="#FFFFF F" text="#000000">

</body>
</noframes>
</html>

=============== =============== =============== =
Top Frame
=============== =============== =============== =
<% @ Language=VBScri pt %>
<% session("top")= "top" %>
<html>
<head>
<title>top</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFF F" text="#000000">
<p>Index=<% response.write session("index" ) %></p>
<p>Top=<% response.write session("top") %></p>
<p>Bot=<% response.write session("bot") %></p>
</body>
</html>
=============== =============== =============== =
Bot Frame
=============== =============== =============== =
<% @ Language=VBScri pt %>
<% session("bot")= "bot" %>
<html>
<head>
<title>bot</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFF F" text="#000000">
<p>Index=<% response.write session("index" )%></p>
<p>Top=<% response.write session("top")% ></p>
<p>Bot=<% response.write session("bot")% ></p>

</body>
</html>

Jul 19 '05 #3
"Evertjan." <ex************ **@interxnl.net > wrote in message news:<Xn******* *************@1 94.109.133.29>. ..

Session variables have nothing to do with a browser.
ASP is serverside and has nothing to do with frames.

If(!!!) both frame page are called in the same session,
the session variable MUST be available.

But your top and bottom frames cannot both read the session variable
declared by the other, because one of them usually runs prior to the other.


I figured that out when in each frames, I was displaying the sessionid
(even in the Frameset page). On my Netscape, all sessionids were
different. On other co-workers Netscapes, there were either showing
all same sessionsids, some identical or all different. It seams that I
can change from one Netscape to another (most probably because of
preferences ?).

Unless I have a mean of transfering infos between ASP pages with
minimal coding, I'm current starting to pass on those values in the
URL. Only problem now using this, I may have long URLs.

Can't I simply use the same sessionid for all ASP page visted by the
client ? That way, I could still use Session variables.
Jul 19 '05 #4
A Web Master wrote on 23 jan 2004 in
microsoft.publi c.inetserver.as p.general:
I figured that out when in each frames, I was displaying the sessionid
(even in the Frameset page). On my Netscape, all sessionids were
different. On other co-workers Netscapes, there were either showing
all same sessionsids, some identical or all different. It seams that I
can change from one Netscape to another (most probably because of
preferences ?).

Unless I have a mean of transfering infos between ASP pages with
minimal coding, I'm current starting to pass on those values in the
URL. Only problem now using this, I may have long URLs.

Can't I simply use the same sessionid for all ASP page visted by the
client ? That way, I could still use Session variables.


The session ID cookie seems to be disalowed on those browsers, so switch
them on. Session id cookie is necessary for session keeping and session
keeping is necessary for session variables to work.

Otherwise you could use a database of current logons, but I am not "into"
that.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #5

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

Similar topics

1
2263
by: Dave Smithz | last post by:
Hi there, I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the website I have taken over uses two frames. The left hand side is always a navigation frame with the righthand side of the screen always being the target. I developed a main web page where login takes place and if successful a session variable...
2
5250
by: Brad | last post by:
Hi everyone, I've been using ASP on a few different projects over the past year, either using Javascript or VBScript. During that time, I've made use of session variables, but even then, I've tried to keep those variables to a minimum (which is not always easy). I've also read on many ASP resource sites (such as fuzzysoftware.com, etc) that the use of session variables can be a no-no, while others say that it's perfectly valid to use...
9
2551
by: rez | last post by:
I find it rather frustrating that Netscape 4.x is "no longer supported:" http://help.netscape.com/products/client/communicator/reflib.html Same seems true with IE. How am I ever supposed to make my scripts multi-browser, when they don't bother giving me basic documentation?
7
2330
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
2
6744
by: lost hope | last post by:
hey all, my index.html file has 2 frames. one of the frames (left.php) sets a php session variable (using a form). this works as expected. however, when the user hits refresh on index.html, that session variable is lost, even though the session id itself remains the exact same. is this the expected behavior? if possible, how can i ensure the session variable persists across the page refresh? thanks! -henry
2
2129
by: Bonj | last post by:
H I've got the following problem - I need to have an aspx page with two frames, although the question isn't necessarily about the workings of the frames, more session variables... the frames consist of one header (not resizable) and one main (resizable). The source for the "main" page needs to be of the form "WebForm3.aspx?...." with parameters to be determined at runtime. I'm ok with this, I've gone down the route of puttin src="<%=...
7
7776
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because ASP.NET always sets the Session cookie domain to the full domain (e.g. "www.mydomain.com") instead of the parent domain (e.g. "mydomain.com") The problem with this is when the visitor goes to a different sub-domain (e.g. "search.mydomain.com"),...
5
548
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know users or save any data. If the application crashes or user exits the program they should simply start again. Pretty basic. All interactions are stored in an array (not much going on to save to a
0
8968
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
9473
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...
0
9208
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
6750
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
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4569
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...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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
2193
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.