|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Bizarre session id behavior under IEI 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Bizarre session id behavior under IEJim Storch wrote: > 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. 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 fumanchu@... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Bizarre session id behavior under IEThanks for the suggestion, Robert. I'll give that a try. -Jim Storch On Jun 28, 2:21 pm, "Robert Brewer" <fuman...@...> 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...@... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |