473,602 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE does not accept session cookies

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="tru e" in the web.config

3. Yes, I tried IE - Tools - Privacy - Accept All Cookies and also
Override automatic cookie handling, Always allow session cookes

I don't know what else it might be - IE simply does not accept the cookies
from that server
regardles of all settings.

It may have somethings to do with the server being in the different AD
domain..

Has anyboy seen this problem?

Thanks,

-Stan

Nov 14 '07 #1
2 4998
Well, IE certainly does accept Session cookies and all other cookies. Unless
you can post some sample code, we'll just have to guess. Maybe you aren't
setting the domain and / or path properties of the cookies?

--Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"StanB" wrote:
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="tru e" in the web.config

3. Yes, I tried IE - Tools - Privacy - Accept All Cookies and also
Override automatic cookie handling, Always allow session cookes

I don't know what else it might be - IE simply does not accept the cookies
from that server
regardles of all settings.

It may have somethings to do with the server being in the different AD
domain..

Has anyboy seen this problem?

Thanks,

-Stan

Nov 15 '07 #2
I am not setting the cookies, I am setting session which may or may not use
the cookies.
Session state by default requires ASP_SessionStat e cookie but can also be
cookieless
in which case sesssion id is apended to url.

There is not whole lot of code to post:
=====
protected void btnSetSession_C lick(object sender, EventArgs e)

{

Session[Key] = "123";

}

protected void btnGetSession_C lick(object sender, EventArgs e)

{

if (Session[Key] != null)

{

lblValue.Text = string.Format(" Value:'{0}' Mode:'{1}'
SessionId:'{2}' " +

" CookieMode:'{3} ' IsCookieless:{4 }",

Session[Key].ToString(),

Session.Content s.Mode,

Session.Content s.SessionID,

Session.CookieM ode,

Session.Content s.IsCookieless) ;

}

else

lblValue.Text = string.Format(" Session[\"{0}\"] is null!", Key);

}

=============== ======

The code works on my machine, but when deployed to another machine which
belongs to a different AD domain, stops working unless the session mode is
changed to cookieless in web.config.

Here is the problem:

When running on another machine somehow ASP.NET determines the IE does not
support cookies and does even send the session cookie to the browser, I
checked it with Fidler.

I have no idea why ASP.NET decides that IE does not support cookies even
after I explicitly allow all cookies in IE settings.

I have seen people experiencing this issue and yet the only workaround is to
change session state to be cookieless. While it is a solution, I am trying
to get to the bottom of the problem and also in some scenarios you may not
want to run cookieless session state.

"Peter Bromberg [C# MVP]" <pb*******@yaho o.NoSpamMaam.co mwrote in message
news:71******** *************** ***********@mic rosoft.com...
Well, IE certainly does accept Session cookies and all other cookies.
Unless
you can post some sample code, we'll just have to guess. Maybe you aren't
setting the domain and / or path properties of the cookies?

--Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"StanB" wrote:
>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="tru e" in the web.config

3. Yes, I tried IE - Tools - Privacy - Accept All Cookies and also
Override automatic cookie handling, Always allow session cookes

I don't know what else it might be - IE simply does not accept the
cookies
from that server
regardles of all settings.

It may have somethings to do with the server being in the different AD
domain..

Has anyboy seen this problem?

Thanks,

-Stan


Nov 15 '07 #3

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

Similar topics

2
4703
by: Tom | last post by:
Hi, I would like to use the standard PHP sessions and I understand they rely on the target web browser to support session cookies. I have tried the following code: <? session_start(); if (!session_id()) { //no support for session
6
4493
by: Brian Burgess | last post by:
Hi all, Anyone know how to send ASP Session cookies like the following: 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/' using WinInet? thanks in advance... -BB
6
3895
by: Nicolae Fieraru | last post by:
Hi All, I recently discovered that my session cookies on the web host disappear within 30 seconds. I created some very simple asp scripts (it took me a while until I discovered why my shopping cart acts very weird...) to check the session cookies. On one asp page I set up cookies:
3
1765
by: Nicolae Fieraru | last post by:
Hi All, I have a lot of problems with the web site www.ggsurf.com.au I host on www.gnxonline.com and I want to find out if it is my own problem or theirs. I try to use session cookies and it doesn't work fine. Eventually I created some test scripts, which can be found in here: www.ggsurf.com.au/info.asp There is a link to Set the Session("TransactionID") = 25 and the page
11
6031
by: Jennifer | last post by:
Is there a way to check for to see if the user has session cookies enabled? I know how to check to see if they have cookies in general enabled, but how do you test for just session cookies? Thanks Jen
6
2109
by: Marcus | last post by:
Hello all, This is baffling me. I am starting a session and I know it is setting a cookie on my computer - I called getallheaders() and see that it is setting the cookie, and it is also accessible in $_COOKIE. I cleared all cookies in my Cookies folder before starting the session, and everytime I run the script it does not create a cookie in the folder. For testing I even set the browser to accept all cookies to make sure. ...
3
12702
by: mosesdinakaran | last post by:
Hi Where does the cookies stored in the client machine that php creates after calling session_start() function. I am using IE... I checked in the following folders but no cookies are stored. 1)C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files
3
3030
by: Jim Carlock | last post by:
I have a problem where session cookies get left inside the temporary folder. Is this a common problem or is there perhaps something I've over looked - there a way to make sure the session variables get cleaned up? -- Jim Carlock Post replies to the group.
3
1653
by: dinesh1985singh | last post by:
Hello everyone, Could any one explain me the exact difference between session cookies ,session and cookies. I know about cookies and session well but I want to know the session cookies in deep in php. As this is totally new thing to me.I also want know how flow of session cookies in a site. Please help me out in this regard,I really got confused..
0
7993
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
8401
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...
1
8054
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
8268
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...
1
5867
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
5440
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
3900
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...
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1254
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.