473,396 Members | 1,832 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,396 software developers and data experts.

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=VBScript %>
<% session("index")="index" %>
<html>
<head>
<title>Untitled 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="#FFFFFF" text="#000000">

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

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

<body bgcolor="#FFFFFF" 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=VBScript %>
<% session("bot")="bot" %>
<html>
<head>
<title>bot</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" 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 4644
A Web Master wrote on 23 jan 2004 in
microsoft.public.inetserver.asp.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.google.c om...
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=VBScript %>
<% session("index")="index" %>
<html>
<head>
<title>Untitled 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="#FFFFFF" text="#000000">

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

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

<body bgcolor="#FFFFFF" 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=VBScript %>
<% session("bot")="bot" %>
<html>
<head>
<title>bot</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" 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********************@194.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.public.inetserver.asp.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
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...
2
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...
9
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...
7
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...
2
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,...
2
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...
7
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...
5
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.