I use apache2+mod_wsgi instead, and make nginx as a reverse static
file proxy. the setcookie problem solved

unfortunately it introduces a more severe bug on sqlite db writing,
seems it's a mod_wsgi's bug, anyway, after one-day hard works on
converting sqlite db to mysql db, finally I can use web.setcookie now,
tears ~~>.<~~

btw, mysql is much slower than sqlite in my app, but slow is better
than nothing, setcookie is a must... I hate all the strange bugs....

On Jan 23, 6:39 pm, Jingchao Hu <[email protected]> wrote:
> You're right, when using builtin server: "python test.py", it works
> well
>
> but when using spawn-fcgi+flup, it broken >.<
>
> Can you explain why and how to solve this problem? thank you~~
>
> On Jan 23, 5:41 pm, Anand Chitipothu <[email protected]> wrote:
>
> > On Sat, Jan 23, 2010 at 11:27 AM, Jingchao Hu <[email protected]> wrote:
> > > Hi,
>
> > > I'm new to web.py, I have a problem with setcookie
>
> > > I follow the instructions onhttp://webpy.org/cookbook/cookies, and
> > > use firefox's httpfox extension to debug my sites, it turns out that
> > > the "Set-Cookie" header is not be sent to my browser,here's my code:
>
> > [...]
>
> > > And here's the response headers
> > > ==============================================
> > > (Status-Line)   HTTP/1.1 200 OK
> > > Server  nginx/0.7.62
>
> > [...]
>
> > Have you tried with the builtin server?

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to