Hi, I guess I don't understand session management, and need some help. I'm using the FSSession tool and have things configured like this: Root/ SubFolder1 SubFolder2 SubFolder3 FSSession index_html index_html initializes the FSSession object. The docs say I should just put it in my standard_html_header, but if it gets rexecuted I get an error message, so I put it in index_html using the following: <dtml-unless "_.has_key('FSSession')"> <dtml-call FSSession> </dtml-unless> This appears to work very nicely, as I make extensive use of it in SubFolder1. However, I found a need to display a form in SubFolder2 from SubFolder1 and use a session key that was set in SubFolder1. It didn't work, I couldn't figure out why until I printed the FSSession object while using the SubFolder2 form. It was empty. I guess I don't understand this, the FSSession object is in the root folder, it is initialized in my index_html in the root folder, why doesn't SubFolder2 inherit the FSSession from the root? Any enlightenment would be greatly appreciated. -- Stand Fast, tjg. Chief Technology Officer tjg@exceptionalminds.com Red Hat Certified Engineer www.exceptionalminds.com Avalon Technology Group, Inc. (503) 246-3630
>>>>>>EXCEPTIONAL MINDS, INNOVATIVE PRODUCTS<<<<<<<<<<<<
Dear Timothy - I was away for a couple of days and I just got your message. If you need session management for a production site and you have a relational database talking to Zope I suggest using SQLSession which has been in use longer. If the FSSession is in your acquisition path then you should be able to access it from any child folder. I will try to replicate your set up and check whether there is a bug in FSSession or not. Pavlos
participants (2)
-
Pavlos Christoforou -
Timothy Grant