Bizarre session id behavior under IE

13 views
Skip to first unread message

Jim Storch

unread,
Jun 27, 2008, 8:55:37 AM6/27/08
to cherrypy-users
I have a haunted server.

Let me give you the scenario. I have a program written in CherryPy
that we use on our local network to schedule patient transportation.
The server was running Fedora 4 and CP 2.3. This week I upgraded the
server to Fedora 9 and CherryPy 3.0.3. I had already ported the
application to 3.0 on my development box.

If you use the application via Internet Explorer, it creates a new
session id with every request. If you use Firefox it doesn't.

I didn't want to take the server offline, so I grabbed a spare PC
thinking I would duplicate the condition on a test "server" while I
tracked down the problem. I used the same Fedora 9 DVD and the same
code, literally extracting the same tar file from a flash drive -- and
it worked fine in IE.

Consider this snippet:

@cherrypy.expose
def show_id(self):
return str(cherrypy.session.id)

http://192.168.10.12:8080/show_id <-- live server, NEW session id each
refresh
http://192.168.10.14:8080/show_id <-- test server, SAME session id
each refresh

Same code, same os, same libraries, same client machine & browser
doing the testing. The only differences are the hardware; Dell server
vs. an HP desktop, and the live server runs on the same box as the
PostgreSQL database but I'm using file based sessions.

Lastly, sessions used to work just fine on this box before the big
update.

Any insights would be greatly appreciated.

Regards,
Jim Storch

Robert Brewer

unread,
Jun 28, 2008, 2:21:41 PM6/28/08
to cherryp...@googlegroups.com

I wish I had some brilliant ones but I don't, even after examining the
session modules in 2.3 and 3.0 pretty thoroughly. Because it works in
Firefox but not IE, my first thought is that something's going wrong
with the cookie value in IE--the first thing I would check is whether
that id value (and path, etc) is getting round-tripped correctly, by
logging the cookie value on both response and request.


Robert Brewer
fuma...@aminus.org

Jim Storch

unread,
Jun 30, 2008, 8:01:22 AM6/30/08
to cherrypy-users
Thanks for the suggestion, Robert. I'll give that a try.

-Jim Storch

On Jun 28, 2:21 pm, "Robert Brewer" <fuman...@aminus.org> wrote:

> I wish I had some brilliant ones but I don't, even after examining the
> session modules in 2.3 and 3.0 pretty thoroughly. Because it works in
> Firefox but not IE, my first thought is that something's going wrong
> with the cookie value in IE--the first thing I would check is whether
> that id value (and path, etc) is getting round-tripped correctly, by
> logging the cookie value on both response and request.
>
> Robert Brewer
> fuman...@aminus.org
Reply all
Reply to author
Forward
0 new messages