IE7 session variable bug ?

Hi

I developed a site about 6 months ago, written in Cold Fusion MX 7.

A simple log-in page creates a session struct() variable upon successful log-in and then re-directs the member to their login home page area. On the login home page area, a simple script runs to see if a session variable exists, and if it dosnt, redirects them back to the login page. This is so that people cant access their login home page directly, without logging in.

The site works fine in Mac OSX, all browsers and on PC, all browsers, except for IE 7.

Does IE 7 have a session bug ? Appears so.

Anyone else experienced session problems of this kind ?

Thanks in advance

Jason

[701 byte] By [JasonCroft] at [2007-12-25]
# 1

Can you supply more details and exact steps to reproduce the issue?

Thanks
-Dave

DaveMassy at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 2

I’m having

a similar problem running a ASP.Net 2.0 application (DotNetNuke). I have found, using Fiddler, that IE doesn’t

send the asp.net session cookie on request of javascript, so the server issue

another session and log me out redirecting to login page. It happens in IE 6, but now is more frequent

with IE 7 RC1. Other browsers works

fine.

Rgds,
Milo

milocr at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 3
I am having a similar problem!

I thought I was going crazy. I have a site for fast pitch teams with a select box that sets the team (session variable) you want to look at. I had this working fine, then all of a sudden I was loosing the team id between pages. It works perfectly in FF. I didn't correlate my problem with an update to IE 7 until today.

Hurray! It isn't just me!

AcerDad at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 4
Dave,

I am definitely experiencing this problem. I have a site set up to host information for fast pitch teams. On the home page I have a select element to allow the user to select the team they want to view on the rest of the site. The select action is simply to run a CF page that takes the selected option value and set a session variable with that value.

What I am experiencing is that once you navigate away from the home page to the other pages it may (or may not) remember the team id. Every time you go back to the home page, it loads with the default team selected instead of your last selection. Then as you go to the other pages, you can get different teams showing up.

The site is www.fprankings.com/acers. I have it sort of in debug mode now, with the guts of most of the pages stripped out, because I wasn't sure why I started having a problem all of a sudden. Each page you navigate to gives a header for the page with the team name identified.

If you go back and forth a few times between the home page and the other pages, and select different teams, you can end up seeing different teams on each subsequent page instead of the team you just selected.

The site was working fine with IE 6, and it continues to work fine with FF. I just today correlated the onset of the problem with updating to IE 7.

Hope this helps in solving the problem!!

AcerDad at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 5
PS. I have IE Version 7.0.5730.11
AcerDad at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 6
Similar problem.

I get posted back into Login page after loading a big database (100mb+)

where if i load a smaller database ( 3mbs ) everything is fine.

Big database also fine in FF.

Fix please :)?

Thanks.

Jackw7x at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 7
I have fixed my problem setting the domain for the asp.net session cookie. For some reason, IE does not "remember" the cookie domain between requests, so it will expire the cookie. Hope it helps.
milocr at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 8
more information please?

How do you actuallly set the domain for the "Session" Cookie? Im not sure what the index or identifier is.

Thanks.

Jackw7x at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 9

In web.config, look for anonymousIdentification section and httpcookies section, set the domain property on both to your domain. Example:

<anonymousIdentification
enabled="true"
cookieName=".ASPXANONYMOUS"
cookieTimeout="8000"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="None"

domain="yourdomain.com"/>

Rgds

milocr at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 10

Hi Jason,

I develop websites with PHP and MySQL and I've experienced similar problems. My session variables just dissappear somewhere on the way once logged in. It works fine on IE6, FF, Netscape, Opera, except for IE7. Did you find any solution yet to overcome the problem? Have Microsoft team been doing anything to finally fix the bug? I doubt it, to be honest as today's January 27th, 2007 :-))))

Regards,
Aggie

Agatka23 at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 11

Hi Aggie

its been a long time since I posted my original question, and cant for the life of me remember how I worked around it, but Im sure I just avoided IE7 in the end.

Sorry I cant be of any more help!

Jase

JasonCroft at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 12

Although it's not a "clean" solution, I've managed through this problem using php's function "session_id()" and passing via POST or GET the session id.

When printing the session id after the session_start(), I've realized that each page has a different session id, so I've managed it "by hand".

Perhaps not the best solution, but it works.

Leonardo M. Ayala

http://www.lanoche.com.uy

LeonardoM.Ayala at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 13

Dear Dave,

I have been struggling with this problem for months now. It happens in IE6 and IE7 and the difficulty is that it doesn't happen all the time.

I did several tests setting cookies in 12 different ways and the cookies get accepted and set without any problem. For some reason the cookies are not send back to the server.

It is very difficult to describe the behavior because I don't have it on my computer. I get a lot of complaints that people can't sign in on one of my websites and the only information I can get from them is that they are using Windows XP SP2 and Internet Explorer 6 or 7.

Any suggestions how I can test or do you have a solution in the mean time?

Thanks.

codemind at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 14
Agatka23 wrote:

Hi Jason,

I develop websites with PHP and MySQL and I've experienced similar problems. My session variables just dissappear somewhere on the way once logged in. It works fine on IE6, FF, Netscape, Opera, except for IE7. Did you find any solution yet to overcome the problem? Have Microsoft team been doing anything to finally fix the bug? I doubt it, to be honest as today's January 27th, 2007 :-))))

Regards,
Aggie

Same problem here! Running classic ASP on XP-home / IE7 (7.0.5730.11) and losing session vars some 3 minutes after login... Here's hoping for some workaround or better: bug fix.
Regards,
Charles

CharlieRomeo at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...