473,831 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE6 loose cookies when return to .aspx from .asp web page (works in firefox)

I'm loosing cookies in IE6 (works okay with firefox) with the following
steps...

step 1. set a cookie in one domain, in an .aspx.cs codebehind...
in www.domain.com/subdomain1/page1.aspx
HttpContext.Cur rent.Response.C ookies.domain = "domain.com ";
HttpContext.Cur rent.Response.C ookies.Add(cook ie);

step 2. Form post (using javascript submit) to an asp page in another
subdomain..www.domain.com/subdomain2/page2.asp

step 3. From www.domain.com/subdomain2/page2.asp, post form values back
to
www.domain.com/subdomain1/page1.aspx

step 4. Try to access cookie from step one but cookie is lost/null, so
following line causes 'object reference not found error'.

string string1 =
HttpContext.Cur rent.Request.Co okies["cookiename "].value;

I already checked to make sure all urls are http, not https. Also,
have IE6 privacy setting to allow session cookies and security setting
for testsite is low.

Does anybody know why this works in firefox, but not IE6?

Also, works in IE if running project locally...
form post from localhost/subdomain1/page1.aspx to
www.domain.com/subdomain1/page2.aspx, then formpost back to
localhost/subdomain1/page1.aspx.

Thanks!

Oct 19 '06 #1
0 1074

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

Similar topics

33
2481
by: Todd | last post by:
OK, I created a .htm page within a new Web solution: -------------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Menu</title> <meta name=vs_defaultClientScript content="JavaScript">
1
2890
by: Andrew Parsons | last post by:
Hi all, I had a weird issue with trying to use a cookie in a ASCX housed on my web forms and I was wondering if I am missing something. I wanted to use the authenticated cookie for the user name logged into the web site to show the user that they are logged on. If I do it in the main page (the ASPX that houses the ASCX) load event it works fine, but if I do it in the Page Load event of the ASCX itself it gets weird results...
3
7889
by: Peter Row | last post by:
Hi, I better get the background stuff out the way first, so here goes: - Porting a VB6 webclass app to VB.NET using HttpHandlers and FormsAuthentication - When someone visits my site unbeknown to them they are automatically logged in as a guest via the .NET forms authentication.
6
1594
by: Pete Davis | last post by:
I've never done anything with cookies. What I'm trying to do is very straight-forward, but for some reason, it just doesn't seem to want to work. I have a helper class with some static methods. Two are for setting and getting the name of the user to/from a cookie: public static string GetSiteUser(HttpRequest request) { HttpCookie userCookie = request.Cookies; if (null == userCookie || null == userCookie.Value) {
0
1454
by: Ed Douglas | last post by:
Hiyas, I've been banging my head against a brick wall for the last few days trying to work out why some of my code doesnt work. I have an ASP/ASP.NET application (website) that is the was previously simply an ASP site. The first thing we have done is moved an old C++ COM object that managed the applications security into a more OO structure and also into the .NET environment - its now a number of C# classes in a Service layer of the...
3
1835
by: Phillip N Rounds | last post by:
I'm having trouble with using cookies to monitor the stages of login. I have a two stage Registration page ( register.aspx ) and my target page ( MyPage.aspx ) I'm using a cookie named LoginStatus to tract the stage of the login process. LoginStatus = "1" denotes that the first part of the login process has been performed. LoginStatus = "2" denotes that the login process has been completed.
0
541
by: dawson | last post by:
I started off by trying to use the HttpCapabilitiesBase.Cookies Property (Note: This property is new in the .NET Framework version 2.0) however it kept on returning true even when I disabled cookies in both FireFox and Internet Explorer. After a bit of googling I found that a lot of people were creating cookies, then re-reading them; obviously if they could re-read the cookie then they knew that the client's browser accepts cookies!...
5
1554
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 and write it back... which works fine for adding a single name-value pair on a page. The problem is, I want/need to add multiple name-values pairs, the number of which changing between pages (some might have 3, another 8). In my test scripts...
1
2009
by: stillworkingfortheman | last post by:
I'm loosing cookies in IE6 (works in firefox) when with the following steps... step 1. set a cookie in one domain, in an .aspx.cs codebehind... in www.domain.com/subdomain1/page1.aspx HttpContext.Current.Response.Cookies.domain = "domain.com"; HttpContext.Current.Response.Cookies.Add(cookie); step 2. Form post to an asp page in another subdomain..www.domain.com/subdomain2/page2.asp
0
9793
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
9642
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
10494
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...
1
10534
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9317
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
7748
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
5620
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
5785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4417
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

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.