[mod_python] mod_python session problem

yjfuk yjfuk at 126.com
Sat Apr 1 11:04:32 EST 2006


code below:
from mod_python import Session
def index(req)
  sess=Session.Session(req)
  if sess.is_new():
    sess['num']=0
    sess.save()
  else:
    sess['num']+=1
    sess.save()
    req.write(str(sess['num']))
 
 
when I reflush the browser some times ,the session is usually lost .
I run it in windows XP(sp2),python 2.4.2, mod_python 3.2.8 

 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060402/29b9b902/attachment.html


More information about the Mod_python mailing list