Session added by product data lost when session is altered by a dtml method.
Hi all, I have a python product that stores some data in the session object and displays it in it's dtml presentation methods - all good! When I add session data from a dtml-method in the zodb my session data added by the product is lost. My question is Why. The product class inherits SimpleItem.SimpleItem (I can change that if needs be) and I haven't implimented any security declerations yet so the product's methods are not protected. The funny thing is that I can access and change the session variables from another product I have made without killing what is already there but after doing that, I can't alter it with the original product. The second product does have permissions set however the only permission you need is View for the method that alters the session data. Thanks in advance for any advice, Sean Kemplay __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Sean K wrote at 2003-1-30 03:44 -0800:
I have a python product that stores some data in the session object and displays it in it's dtml presentation methods - all good!
When I add session data from a dtml-method in the zodb my session data added by the product is lost. I cannot believe that....
Or do both use the same key? Note: session data is global. I expect I misunderstood something. Can you try again and precisely describe your problem: What does your product write to the session? What does your DTML object write to the session? How it looks then? Dieter
Hi Dieter You are of course right. I apologize for wasting the lists time. Tooo long staring at a computer screen left me unable to see that I had left a call to SESSION.clear() that I was using for testing in my DTML Method and forgot to comment out. Thank you for asking me to clarify my problem as the solution was in front of me.:
What does your DTML object write to the session?
Best regards Sean Kemplay --- Dieter Maurer <dieter@handshake.de> wrote:
Sean K wrote at 2003-1-30 03:44 -0800:
I have a python product that stores some data in the session object and displays it in it's dtml presentation methods - all good!
When I add session data from a dtml-method in the zodb my session data added by the product is lost. I cannot believe that....
Or do both use the same key? Note: session data is global.
I expect I misunderstood something. Can you try again and precisely describe your problem:
What does your product write to the session? What does your DTML object write to the session? How it looks then?
Dieter
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
participants (2)
-
Dieter Maurer -
Sean K