Have you confirmed that the session actually *is* empty (e.g., add 
response.toolbar() to every page and check the content of the session on 
every request)?

On Thursday, October 29, 2015 at 7:54:14 AM UTC-4, Gael Princivalle wrote:
>
> Well, thank you for your help. I cannot understand why you can't reproduce 
> the problem. I've tried from Chrome and Firefox from Apple and Windows 
> systems on 5 different computers, problem still the same.
> Yes I can see the session_id_mompala_negozio_bio_torino cookie, before and 
> after trying to add a product to cart. Value remain the same, but session 
> seems empty.  
>
>
> Il giorno giovedì 29 ottobre 2015 12:08:49 UTC+1, Anthony ha scritto:
>>
>> If you add this string after the URL:
>>>
>>> &utm_source=emailcampaign6&utm_medium=phpList&utm_content=HTMLemail&utm_campaign=Newsletter+dell%27Azienda+Agricola+Mompal%C3%A0+-+01+-+Offerta+del+Mese+-+Composta+di+Pesche
>>>
>>> and try again to login, nothings happen, and all session vars are 
>>> unavailable.
>>> Complete link:
>>>
>>> http://www.mompala.it/prodotti?product_id=37&utm_source=emailcampaign6&utm_medium=phpList&utm_content=HTMLemail&utm_campaign=Newsletter+dell%27Azienda+Agricola+Mompal%C3%A0+-+01+-+Offerta+del+Mese+-+Composta+di+Pesche
>>>
>>
>> I cannot reproduce the problem. When I click the link above, I can add 
>> items to my cart and they persist in the cart. I can also log in and remain 
>> logged in, and the items that were already in my cart remain in my cart 
>> even after login.
>>
>> Perhaps the problem is specific to your browser -- maybe your browser is 
>> not returning the session cookie. The session works by have the browser 
>> pass a special cookie back and forth with the session ID. On the server 
>> side, web2py associates that session ID with a session file that stores the 
>> session data. In your browser developer tools, for each request, you should 
>> be able to see all request and response cookies. Your session cookie should 
>> be named session_id_mompala_negozio_bio_torino. Confirm that this cookie is 
>> being passed in both the request and response, and that its value remains 
>> the same with each new request.
>>
>> Anthony
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to