[mod_python] mod_python session p roblem

yjfuk yjfuk at 126.com
Sat Apr 1 23:45:00 EST 2006


I mean refresh,e.g. press F5 in the IE
 
 
 
 
 
 



-----ԭʼÓʼþ-----
·¢¼þÈË:"Jim Gallacher" 
·¢ËÍʱ¼ä:2006-04-02 03:28:55
ÊÕ¼þÈË:"yjfuk" 
³­ËÍ:mod_python at modpython.org
Ö÷Ìâ:Re: [mod_python] mod_python session problem


yjfuk wrote:
> 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 

Does reflush mean refresh or restart?

Jim


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


More information about the Mod_python mailing list