Re: [Zope] Re: FSSession newbie problem

2000-06-12 Thread Marcello Lupo
Hi, well the system run now but as i told before if i put a dtml-call FSSession in all my pages, FSSession open one session for page everytime i load it. So the cart result everytime containing only the last item and the files created contain the values. If i put dtml-call FSSession only in the

Re: [Zope] Re: FSSession newbie problem

2000-06-12 Thread Hung Jung Lu
From: Marcello Lupo [EMAIL PROTECTED] Have some ideas to let the browser pass the cookie in a right way? I think we can work on the PATH but i don't know how. Okie, you have a cookie problem. You should definitely solve your cookie problem, if you can. But you can also use cookie-less sessions

[Zope] Re: FSSession newbie problem

2000-06-09 Thread Marcello Lupo
Well... the statements are not in the same file but in two different files. This are the statements, the dtml-call FSSession is in the standard_html_header. Method list_products: dtml-var standard_html_header dtml-unless "FSSession.has_key('carrello')" dtml-call "FSSession.set('carrello',{})"

Re: [Zope] Re: FSSession newbie problem

2000-06-09 Thread Pavlos Christoforou
On Fri, 9 Jun 2000, Marcello Lupo wrote: dtml-var "FSSession('carrello')"br It prints out "None" I supose you mean ...FSSession['carrello'] .. The FSSession is in the same folder of my two methods, may be this a problem? No it should not one. Probably the second method point to

Re: [Zope] Re: FSSession newbie problem

2000-06-09 Thread Pavlos Christoforou
On Fri, 9 Jun 2000, Marcello Lupo wrote: 1) Is necessary to call FSSession in every document of the site or is sufficient on the first page (home page of the e-com for example)? Becouse i noticed (obviously) that every time it open a file the HD. And i think this is a problem because

Re: [Zope] Re: FSSession newbie problem

2000-06-09 Thread Hung Jung Lu
From: Pavlos Christoforou [EMAIL PROTECTED] On Fri, 9 Jun 2000, Marcello Lupo wrote: 1) Is necessary to call FSSession in every document of the site Yes it is neccessary beacuse HTTP is stateless. It will only start a new session if FSSession cannot find a valid UID either through a cookie or

Re: [Zope] Re: FSSession newbie problem

2000-06-09 Thread Pavlos Christoforou
On Fri, 9 Jun 2000, Hung Jung Lu wrote: Pavlos: this is the part that is confusing to newbies. FSSession can be made in such a way that this initial call can be avoided. HappySession works that You are right. There is no real need for the initial call. It was initially designed like this

[Zope] Re: FSSession newbie problem

2000-06-08 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Marcello Lupo [EMAIL PROTECTED] wrote: and macically i obtain the same error. this is the code i used: dtml-call FSSession dtml-unless "FSSession.has_key('cart')" dtml-call "FSSession.set('cart',{})" /dtml-unless dtml-call "FSSession['carrello'].update(REQUEST.form)" I