session limitation---
Steve Kieu <[email protected]> Fri, 13 May 2005 14:09:00 +1000 (EST)
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Now I have found that I can not store a dictionary in
session. skunkweb does not give even any error message
but it does not work as expected. Example:
<:set s `CONNECTION.getSession(create=0)`:>
<:if `s==None` :>
<:set s `CONNECTION.getSession(create=1)`:>
<:/if:>
<:if `not s.has_key('j')`:>
<:set tmp `{'a':'rrr','b':1}`:>
<:call `s['j']=tmp`:>
<:else:>
<:call `t=s['j']['b']`:>
<:val `t`:> <br>
<:call `s['j']['b']=t+1`:>
<:/if:>
<:val `s['j']['b']`:>
s['j']['b'] never incremented as expected.
This is a kind of annoying, as it is not documented
anywhere, is it a bug? or simply not implemented yet?
if so there should be a warning somewhere in the
documentation that, session currently only used to
store simple data value (even not usable for dict)
By the way I am using FS session implementation, not
MySQL or postgres.
S.KIEU
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click