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

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****@apartmentsapart.com
Jul 21 '05 #1
3 2066
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.Cookies["Affi"]["cid"]="45";
Response.Cookies["Affi"]["affref"]="aff";
Response.Cookies["Affi"].Expires=DateTime.Now.AddMonths(1);
Response.Cookies["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****************@TK2MSFTNGP09.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****@apartmentsapart.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.Cookies["Affi"]["cid"]="45";
Response.Cookies["Affi"]["affref"]="aff";
Response.Cookies["Affi"].Expires=DateTime.Now.AddMonths(1);
Response.Cookies["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****************@TK2MSFTNGP09.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********@NOSPAMzadsoft.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
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...
4
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...
0
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...
1
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...
1
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...
20
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...
5
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...
14
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...
27
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...
1
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,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.