Re: Session is forgetting?

2018-03-08 Thread Mike Hostetler
In case anyone is following along... it seems like the cart isn't saved in
the DB. The ID is in the session  but for some reason isn't saved.  I did
put a safeguard around the ID in cache (so cache the cart's ID as well as
store it in the session) and that seems to help but not solve the problem.



On Tue, Mar 6, 2018 at 4:42 PM, Mike Hostetler 
wrote:

> Not sure if anyone is still on this list but I'll give it a shot...
>
> I still have a customer on Satchmo (they haven't been willing to pay for a
> rewrite to something else). Naturally they have had problems with old TLS
> on their payments provider. I moved them to ActivePython 2.6 and the
> gunicorn server that comes with it. That has TLS 1.2 and works beautifully.
>
> But one in a while, a customer will look at his cart, hit the checkout
> button, and step 1 of checkout says "your cart is empty" and it's only
> obviously not. Restarting gunicorn fixes it.
>
> I looked at the code and it stores the cart in the user session and in
> step 1 gets it back out. So it seems to lose it.
>
> Anyone see this before (with or without Satchmo)? Is something with
> gunicorn causing it to fall out?
>
>
>


-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at https://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Session is forgetting?

2018-03-06 Thread Mike Hostetler
Not sure if anyone is still on this list but I'll give it a shot...

I still have a customer on Satchmo (they haven't been willing to pay for a
rewrite to something else). Naturally they have had problems with old TLS
on their payments provider. I moved them to ActivePython 2.6 and the
gunicorn server that comes with it. That has TLS 1.2 and works beautifully.

But one in a while, a customer will look at his cart, hit the checkout
button, and step 1 of checkout says "your cart is empty" and it's only
obviously not. Restarting gunicorn fixes it.

I looked at the code and it stores the cart in the user session and in step
1 gets it back out. So it seems to lose it.

Anyone see this before (with or without Satchmo)? Is something with
gunicorn causing it to fall out?

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at https://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.