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

cookies problem

Here is my problem!

I have page1.asp in webserver1 with this code

----------Page1 in webserver1
<script src=webserver2/page2.asp >
</script>

<script>
document.write("<iframe src=webserver2/page3.asp></iframe>")
</script>
--------------
My other two pages in webserver2 look like this

----------Page2.asp in webserver2-------
response.Cookies("USR")="user1"
response.Cookies("USR").expires=cdate("1/1/2009")
//some javascript here
---------------------------------------------------
----------Page3.asp in webserver2-------
response.write(request.Cookies("USR"))
---------------------------------------------------
================================================== =========

I open internet explorer and request webserver1\page1.asp

1)the first problem is that page1.asp finishes loading but there is no
cookie in my temporary internet files( i thought that there should be since
webserver1\page1.asp calls the webserver2\page2.asp ).

2) the second problem is that even if there were a cookie in my temporary
internet files set from webserver2\page2.asp then the webserver2\page3.asp
wouldn't get it when it is called through webserver1\page1.asp(<iframe> tag)

If i directly request webserver2\page2.asp from IE then the cookie is set
If the cookie is set and request webserver2\page3.asp directly from IE then
the cookie is found!
Anybody knows why this happens or any info about that!!

Thanks in advance
Jul 22 '05 #1
2 1299
Cookies are not crossdomaine if you don't changes the setting of MSIE.
See Internet-Options, Security, Level, and than Iframe and Sharing between
... or something like that (my MSIE is in non-english)
Jul 22 '05 #2
xarrisx wrote on 09 mrt 2005 in microsoft.public.inetserver.asp.general:
Here is my problem!

I have page1.asp in webserver1 with this code

----------Page1 in webserver1
<script src=webserver2/page2.asp >
</script>

<script>
document.write("<iframe src=webserver2/page3.asp></iframe>")
</script>
--------------
My other two pages in webserver2 look like this

----------Page2.asp in webserver2-------
response.Cookies("USR")="user1"
response.Cookies("USR").expires=cdate("1/1/2009")
//some javascript here
---------------------------------------------------
----------Page3.asp in webserver2-------
response.write(request.Cookies("USR"))
---------------------------------------------------


This could work:

----------Page2.asp in webserver2-------
<%
response.Cookies("USR")="user1"
response.Cookies("USR").expires=cdate("2009/2/28")
%>
alert('found some javascript here');
----------------------------------------

----------Page3.asp in webserver2-------
<%
response.write request.Cookies("USR")
%>
----------------------------------------
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #3

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

Similar topics

4
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with storing cookies with ASP? I'm trying this with two browsers: One is IE 6.0 with cookies set to 'prompt'. This has been working properly as any...
9
by: | last post by:
Is it possible for a user to enable permanent cookies but disable session cookies.....this seems like a contradition yet this is what I appear to be reading in online articles?
6
by: Mark | last post by:
Hi... I've come across some weird bug with Response.Cookies. Or maybe it will be called "by design" but for the life of me I can't figure out what purpose it would serve. If you're setting a...
2
by: Netanel | last post by:
Hi, I have a site that I developed in ASP / VBScript. Some of the visitors are complaining that they can't get in into the system (using the login form of-course). My login form includes...
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
5
by: Miljana | last post by:
Hi, I have one problem with cookies in ASP.NET application. It seems that I can not retreive cookie from Request.Cookies collection. I put cookie in Response.Cookies collection, and after page...
6
by: Paul | last post by:
Here is a question that should get everyone going. I have an ecommerce site where I need to pass the order_id to every page. So which method is the best practice to pass this variable between...
5
by: Kevin Blount | last post by:
I've setup a method (C#) that I can call, passing it a cookie name, then a name-value pair. The idea is that as I can't append to a cookie, I read the cookie value, append by name=pair to the end...
2
by: StanB | last post by:
I came across this weird problem: 1. Session state stops working after the app is deployed to another server because IE does not accept cookies. 2. It works if cookieless="true" in the...
9
by: tanya.wang | last post by:
Hi, I have a website that would set two cookies when a user logs in successfully. <% response.cookies("login_status")="OK" response.cookies("login_id")="12345" 'This value is from database....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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.