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

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="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

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 4983
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="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

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_SessionState 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_Click(object sender, EventArgs e)

{

Session[Key] = "123";

}

protected void btnGetSession_Click(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.Contents.Mode,

Session.Contents.SessionID,

Session.CookieMode,

Session.Contents.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*******@yahoo.NoSpamMaam.comwrote in message
news:71**********************************@microsof t.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="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

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
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...
6
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
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...
3
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...
11
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? ...
6
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...
3
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....
3
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...
3
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...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.