473,756 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

frames and cookies

Hi
Our partner is using our page in a frame. That couses a problem because our
domain is unable to issue the cookie also session does not work. each time
you click in the frame new session is created.

Is there any way that cookie can be issed , some way to go arround frames
restrictions.
Thanks for your help.

Marcin Gorzynski ma****@apartmen tsapart.com
Jul 21 '05 #1
3 2101
Marcin,
Our partner is using our page in a frame. That couses a problem because
our
domain is unable to issue the cookie also session does not work. each time
you click in the frame new session is created.

The simplest one, find another domain for your partner.

No cookies and no sessions, is your domain really on a IIS and ASPNet
server?

Just my thought,

Cor
Jul 21 '05 #2
Hi
Yes it is, for sure there is IIS and Asp.net

The cookie can not be issued because my partner opens my domain in a frame.
If you open normally or if I make my domain as a top frame then it is ok.
Cookie can not be save to the client it behaves like not persisten cookie
but each time you click something inside the frame, new cookie is created

Response.Cookie s["Affi"]["cid"]="45";
Response.Cookie s["Affi"]["affref"]="aff";
Response.Cookie s["Affi"].Expires=DateTi me.Now.AddMonth s(1);
Response.Cookie s["Affi"].Domain = "domain.com ";

Response.Write( Request.Cookies["Affi"]["cid"]);
You can read it now, but on next page it will vanish.

the same is with session each time you click the new session is created and
old is discarded.

I am not sure why but it looks like even session cookie can not be alive for
longer than one request.


"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Marcin,
Our partner is using our page in a frame. That couses a problem because
our
domain is unable to issue the cookie also session does not work. each time you click in the frame new session is created.

The simplest one, find another domain for your partner.

No cookies and no sessions, is your domain really on a IIS and ASPNet
server?

Just my thought,

Cor

Jul 21 '05 #3
Marcin, I'm no expert (well with .Net anyway) however, I think you may
be looking in the wrong place for the source of this strange behaviour.

Cookies are sent too and stored in the Client Browser viewing the
page(s) and NOT within the Server / Page embedding your page (ie: your
partner). The client browser makes the request for your page when used
in a frame and NOT your partners page.

The fact that you appear to be saying the cookie is not present when
they return to the page (you are checking before recreating it) would
suggest that their browser is refusing to accept cookies. Remember
cookies can be disabled client side (and / or restricted by security
policies) and your application / page will never truly know.

It is also possible that the cookie is being blocked by other Firewall /
Ad Blocking / Popup Blocking restrictions on the client PC (ie: as your
page is being viewed in a frame, it may be being treated as a Banner Ad
and therefore restricted). This sounds more likely as you mention things
are OK if the page is viewed outside the frame (ie: direct).

The session problem is a red herring as session management is performed
automatically by ** Cookies **. You would need to handle your own
session management by persisting the session data to a database or some
other method. This approach MUST be taken when using a Web Farm (ie: Web
Server Cluster) as each request can be being handled by a different
server within the farm.
In message <uA************ **@TK2MSFTNGP14 .phx.gbl>, Marcin Gorzynski
<ma****@apartme ntsapart.com> writes
Hi
Yes it is, for sure there is IIS and Asp.net

The cookie can not be issued because my partner opens my domain in a frame.
If you open normally or if I make my domain as a top frame then it is ok.
Cookie can not be save to the client it behaves like not persisten cookie
but each time you click something inside the frame, new cookie is created

Response.Cooki es["Affi"]["cid"]="45";
Response.Cooki es["Affi"]["affref"]="aff";
Response.Cooki es["Affi"].Expires=DateTi me.Now.AddMonth s(1);
Response.Cooki es["Affi"].Domain = "domain.com ";

Response.Write (Request.Cookie s["Affi"]["cid"]);
You can read it now, but on next page it will vanish.

the same is with session each time you click the new session is created and
old is discarded.

I am not sure why but it looks like even session cookie can not be alive for
longer than one request.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******* *********@TK2MS FTNGP09.phx.gbl ...
Marcin,
> Our partner is using our page in a frame. That couses a problem because
> our
> domain is unable to issue the cookie also session does not work. eachtime > you click in the frame new session is created.
>

The simplest one, find another domain for your partner.

No cookies and no sessions, is your domain really on a IIS and ASPNet
server?


--
Andrew D. Newbould E-Mail: ne********@NOSP AMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Jul 21 '05 #4

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

Similar topics

6
8548
by: BWGames | last post by:
Hey all, I have a website, which uses frames (I know, I know...). Left frame is a navbar, with the main content in the right frame. I can login using sessions on the right frame, giving "Thankyou, $name (where $session(name) = $name etc - not got code available atm, so thats not exactly right, but you get the gist...) I use <body onLoad parent.leftframe etc to reload the left frame, which
4
1994
by: A Web Master | last post by:
I want to know the best way of passing on variable contents on a site coded in ASP using frameset/frame. Content is used in all frames for stuffs like screen_resolution, language, ... My client's site is visited by Netscape 4.x/6.x and IE-5.x/6.x. It's being converted to ASP and currently using frames (middle frame has a vert scroll bar). -I tried using Session("xxx") but in Netscape (4.x), it opens up a new Session-ID for each...
0
1639
by: Dan Meehan | last post by:
I created a music website that allows people to sign up and post messages on some message boards and update their profiles and such. The login script uses cookies, so when they Log Into the site it does something like: Response.cookies("ID") = RS.fields("UserID").value Response.cookies("USERNAME") = RS.fields("Username").value Response.cookies("LEVEL") = RS.fields("ULevel").value and from there, I have a header include that will...
1
1694
by: Eric Petzold | last post by:
What's the trick to sharing cookies between frames? I can set and read a cookie in the same frame, but if I try to read the cookie in another frame it is undefined. :o( There are some other cookies that are available in all frames, so I know that the frames are capable of reading cookies, just not the ones that I set in the other frame. P.S. I am not setting any expiration, path, or domain... keeping the defaults.
1
2789
by: Keimo Repo | last post by:
Hello I would need some advice, even just speculations... A customer of ours insists on a couple of customer specific design features for our existing multi-customer web application: - A top header with a dropdown menu which does not scroll when the page is scrolled. - A lower detail part of the screen (table) where the headers stay, and
20
3370
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and there seems to be the thought of why use Frames when you can use a Master Page? How does a Master Page only update a section without re-displaying the entire page. We have a site that has some small swf banners for lack of a better term that we...
5
1756
by: David T. Ashley | last post by:
Hi, I have an application where I use a left frame to navigate to another page in the main frame. After I've done this, when I use "RELOAD" in the browser, it goes back to the original page rather than the one I've navigated to. If you go to this page: http://fboprimedevel.e3ft.com
14
1584
by: bill | last post by:
I currently have a site which has the index page immediately open two frames. I put a music object in the top frame. That way the music is not cut off when the user navigates to another page and I certainly don't want to put the music on each page. But, the page is not treated well by google as it has no descriptive text to index so I would like to change it to a first real page with text, but I don't want to lose the advantage of a...
27
3967
by: Murray R. Van Luyn | last post by:
Hi, Is using frames in a website as big an issue nowadays as it was maybe 5 or so years ago? I can remember that you used to have to have a frame site, as well as a non frame site for browsers that didn't support the framed version. I wonder whether newer browsers have fixed that problem, and I can now use frames without fear? Regards, Murray R. Van Luyn.
1
2777
by: R. Vince | last post by:
I have a page, which writes a cookie, creating two frames. I have verified via Fireplug that the cookie is being written. In one of the frames, an attempt then is made to read the cookie. Therein, I have code to see if the cookie is set -- and it keeps telling me it is not set (despite my being able to see it there, and it;s contents, and it is correct). Can someone please tell me why, in this code, my frame connot read this cookie? Thanks....
0
9275
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
10034
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
9872
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
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...
0
8713
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
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
6534
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
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.