473,657 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE DOES NOT SUPPORT COOKIE on WIN2K and XP

Please observe the pages below:

session1.asp

<%
Session("test") ="TESTING"
Response.Redire ct "session2.a sp"
%>

session2.asp

<%
Response.Write Session("test")
%>

Those pages does not output any thing if I use IE and If I access the pages
from machines running Windows 2000 Server, XP or Windows NT Server. Opera
outputs as per session variables name.

IIS server is running Windows 2000 server. I've checked the cookie settings
which was set to accept cookies.

I tried IE 5.0, IE 5.5 and IE 6.0

What could be the fix?
Jul 22 '05 #1
8 1569
krisrajz wrote:
Please observe the pages below:

session1.asp

<%
Session("test") ="TESTING"
Response.Redire ct "session2.a sp"
%>

session2.asp

<%
Response.Write Session("test")
%>

Those pages does not output any thing if I use IE and If I access the
pages from machines running Windows 2000 Server, XP or Windows NT
Server. Opera outputs as per session variables name.

IIS server is running Windows 2000 server. I've checked the cookie
settings which was set to accept cookies.

I tried IE 5.0, IE 5.5 and IE 6.0


The only way a browser can affect the ability to use sessions is by
allowing/disallowing cookies.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
Bob Barrows [MVP] wrote:
The only way a browser can affect the ability to use sessions is by
allowing/disallowing cookies.


Within the same window, perhaps that is true. But Internet Explorer goes the
extra mile with the ability to prevent separate windows (or frames) from
sharing cookies with each other. And in a manner that's uncontrollable, no
less. Bravo, Microsoft!
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #3
What's wrong with IE? or Do I need to disregard IE and to opt for other
browsers?

Is there any other programmable browsers available like IE?

RAJ.

"Dave Anderson" wrote:
Bob Barrows [MVP] wrote:
The only way a browser can affect the ability to use sessions is by
allowing/disallowing cookies.


Within the same window, perhaps that is true. But Internet Explorer goes the
extra mile with the ability to prevent separate windows (or frames) from
sharing cookies with each other. And in a manner that's uncontrollable, no
less. Bravo, Microsoft!
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Jul 22 '05 #4
Please observe the code snippet

Shot #1

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

Does outputs Session Testing and Cookie Testing where as shot #2 does output
anything:

Shot #2

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "sample2.as p"
%>

sample2.asp

<%
Response.Write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

I've tested those pages on Avant Browser ( which is also IE based), it too
behaves as IE does. When I test pages on Opera, Netscape Navigator the pages
does output.

Why do IE behaves strangely on handling cookies and sessions? or Does IE
really has the ability to handle sessions efficiently?

Is there any patches available to fix the issue?

Any great workaround would be very much useful and appreciated.

TIA
RAJ.
"krisrajz" wrote:
What's wrong with IE? or Do I need to disregard IE and to opt for other
browsers?

Is there any other programmable browsers available like IE?

RAJ.

"Dave Anderson" wrote:
Bob Barrows [MVP] wrote:
The only way a browser can affect the ability to use sessions is by
allowing/disallowing cookies.


Within the same window, perhaps that is true. But Internet Explorer goes the
extra mile with the ability to prevent separate windows (or frames) from
sharing cookies with each other. And in a manner that's uncontrollable, no
less. Bravo, Microsoft!
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Jul 22 '05 #5
krisrajz wrote:
Please observe the code snippet

Shot #1

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

Does outputs Session Testing and Cookie Testing where as shot #2 does
output anything:

Shot #2

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "sample2.as p"
%>

sample2.asp

<%
Response.Write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

I've tested those pages on Avant Browser ( which is also IE based),
it too behaves as IE does. When I test pages on Opera, Netscape
Navigator the pages does output.

I tested your code on my machine and discovered that the Redirect was the
problem. I changed the code to this:

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "Sample2.asp?Se ssID=" & session.Session ID
%>

<%
Response.Write Session.Session ID & "<BR>"
Response.Write Session("test") & "<BR>"
Response.Write Request.Cookies ("cookietest ")
%>
And discovered that Redirect was causing a new session to be initiated. I
don't remember this behavior occurring so a recent service pack must be
responsible.

When I changed "Response.Redir ect" to "Server.Transfe r", the Session and
Cookie variable values were retained.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #6
Indeed, tons of thanx.

I've got installed SP4 on my machine which version of SP would fix my error.

TIA
RAJ.
"Bob Barrows [MVP]" wrote:
krisrajz wrote:
Please observe the code snippet

Shot #1

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

Does outputs Session Testing and Cookie Testing where as shot #2 does
output anything:

Shot #2

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "sample2.as p"
%>

sample2.asp

<%
Response.Write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

I've tested those pages on Avant Browser ( which is also IE based),
it too behaves as IE does. When I test pages on Opera, Netscape
Navigator the pages does output.

I tested your code on my machine and discovered that the Redirect was the
problem. I changed the code to this:

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "Sample2.asp?Se ssID=" & session.Session ID
%>

<%
Response.Write Session.Session ID & "<BR>"
Response.Write Session("test") & "<BR>"
Response.Write Request.Cookies ("cookietest ")
%>
And discovered that Redirect was causing a new session to be initiated. I
don't remember this behavior occurring so a recent service pack must be
responsible.

When I changed "Response.Redir ect" to "Server.Transfe r", the Session and
Cookie variable values were retained.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 22 '05 #7
You don't understand. Recent SP's for IE have been tightening security. I do
not believe that a SP will be released to reverse this change.

Bob Barrows

krisrajz wrote:
Indeed, tons of thanx.

I've got installed SP4 on my machine which version of SP would fix my
error.

TIA
RAJ.
"Bob Barrows [MVP]" wrote:
krisrajz wrote:
Please observe the code snippet

Shot #1

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

Does outputs Session Testing and Cookie Testing where as shot #2
does output anything:

Shot #2

sample1.asp

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "sample2.as p"
%>

sample2.asp

<%
Response.Write Session("test")
Response.Write Response.Cookie s("cookietest ")
%>

I've tested those pages on Avant Browser ( which is also IE based),
it too behaves as IE does. When I test pages on Opera, Netscape
Navigator the pages does output.

I tested your code on my machine and discovered that the Redirect
was the problem. I changed the code to this:

<%
Session("test") ="Session Testing"
Response.Cookie s("cookietest") ="Cookie Testing"
Response.Redire ct "Sample2.asp?Se ssID=" & session.Session ID
%>

<%
Response.Write Session.Session ID & "<BR>"
Response.Write Session("test") & "<BR>"
Response.Write Request.Cookies ("cookietest ")
%>
And discovered that Redirect was causing a new session to be
initiated. I don't remember this behavior occurring so a recent
service pack must be responsible.

When I changed "Response.Redir ect" to "Server.Transfe r", the Session
and Cookie variable values were retained.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #8
krisrajz wrote:
What's wrong with IE?
[...Must...resis t...temptation. ..]

Regarding this specific issue, one thing is wrong with Internet Explorer. IE
attempts to guess when it should share sessions between browser windows. The
problem isn't that IE has this ability. The problem is that the user (and
consequently the developer) has no control over it.
...Do I need to disregard IE and to opt for other browsers?


That's a virtual impossibility, isn't it? All recent estimates I've seen put
IE saturation between 80% and 89% of the UA population. Rather than
disregard IE, you will have to learn to embrace what it *can* do, and pine
for what it *could* do (e.g. CSS attribute selectors).

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #9

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

Similar topics

8
4178
by: Ken Varn | last post by:
Everytime I call Process.GetCurrentProcess() the system goes out to the floppy drive. Why does this happen. I decided to use FileMon to get a log of what is happening when this occurs. Here is the log: 1 4:31:10 PM BlockedConfigAp:1340 IRP_MJ_CREATE A: DASD SUCCESS Attributes: Any Options: Open 2 4:31:11 PM BlockedConfigAp:1340 IRP_MJ_DEVICE_CONTROL A: DASD INVALID DEVICE REQUEST IOCTL: 0x560000 3 4:31:11 PM BlockedConfigAp:1340...
1
2178
by: Daniel Soderstrom | last post by:
We have a very strange problem that I have not been able to track down. We have a simple cookie being set so people don't have to login to our site everday. However, cookies keep vanishing after a day or two and I havn't been able to work it out. I can actually see the cookie in my "Cookies" folder, however it has a at the end, ie. daniel@www.yoursite.com, when I log into the site again, it creates daniel@www.yoursite.com Server :...
1
2431
by: Andrew | last post by:
When I use a host file entry to point to the host header of the site that I have created on a Win2k server running IIS5, a cookie is not created to hold the session id. The result is that Session_OnStart is run every time a page is requested. If I set up a DNS entry on the DNS server it all works fine. I never noticed this problem before we put in Active Directory so it may have something to do with that.
4
2073
by: Derick Bailey | last post by:
I have a development website running on Win2K Server, using ASP 3.0. I'm using IE6 (all updates added). I have a cookie that is set on a login page, which is an Encrypted password: Response.Cookies("PWORD")=EncryptedPassword I then redirect to a page: Response.Redirect(GotoPage)
4
2573
by: Jerome Cohen | last post by:
This problem is driving us mad, and I saw someone else posting a very similar problem, again no support from MS! ----------------------- Win2K/IIS 5.0, web farm load balanced by Local director. same setup on each web server. I have an application that is mapped to a network folder, physically located on a file server , also Win2K. on each web server, the root level of the application, directly located
9
3136
by: Genady Beryozkin | last post by:
Now that we know WinFX will be branded as .NET 3.0, will Microsoft port WinFX to Windows 2000? Or we will have to wait for 4.0? (or maybe it will be 2.1?) Anybody heard anything?
10
2228
by: eyal.herlin | last post by:
hi, i set a cookie to hold a utf-8 string. either by the server or by the client. it doesn't matter. when i try to read this cookie using Request.Cookies("my_utf8_cookie") on iis 5.0 i get garbage. this garbage seems to be the result of treating the utf-8 data as some single-byte encoding. i have <%@ codepage="65001"%set on the top of the page. this problem does not appear on iis 5.1.
2
5000
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 web.config 3. Yes, I tried IE - Tools - Privacy - Accept All Cookies and also Override automatic cookie handling, Always allow session cookes
14
1575
by: Zorque | last post by:
Suppose I have an HTML form that sends data to a PHP script, "post" method. If this script generates a page with a link to another script, will the latter script get the former's $_POST data when the user clicks on the link? If not, is there a straightforward way (i.e.: no saving to files or cookies) to "post" the data to the latter script without using a form?
0
8399
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
8312
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
8732
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
8504
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
8606
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
5632
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
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
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
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.