Forum OpenACS Q&A: Re: Ecommerce 4.6.3+, new users lose basket contents on sign-up

Here is a revised scenario that differentiates the user_session_id value from the cookie value.

[20/Apr/2004:05:05:20][58837.146861056][-conn1-] Notice: Security: 1082437520 sec_generate_session_id_cookie setting 1150033, 0.
[20/Apr/2004:05:05:20][58837.146861056][-conn1-] Notice: Huh? redirecting: http://dekka.com:8000/ecommerce/?usca%5fp=t

[20/Apr/2004:05:05:41][58837.140103680][-conn0-] Notice: Huh? redirecting: http://dekka.com:8000/ecommerce/shopping-cart?product%5fid=3560

[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: shopping-cart.tcl line40 user_id: 0
[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: shopping-cart.tcl line48 from ad_conn, user_id: 0
[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: shopping-cart.tcl line50 set from cookie, user_session_id: 410
[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: shopping-cart.tcl line53 user_session_id: 410
[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: shopping-cart.tcl line55 from cookie, user_session_id: 410
[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: LARS: counter = 0 ; this_row? 0 ;next_row? 0
[20/Apr/2004:05:05:41][58837.146377728][-conn4-] Notice: shopping-cart.tcl line136 user_id: 0
[20/Apr/2004:05:05:46][58837.146377728][-conn4-] Notice: checkout.tcl line15 from ad_conn, user_id: 0
[20/Apr/2004:05:05:46][58837.146377728][-conn4-] Notice: checkout.tcl line17 user_session_id from cookie: 410
[20/Apr/2004:05:05:46][58837.146377728][-conn4-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/register/index?return_url=https%3a%2f%2fdekka%2ecom%3a8443%2fecommerce%2fc
heckout&http_id=0&user_session_id=410

[20/Apr/2004:05:05:47][58837.146861056][-conn1-] Notice: Security: 1082437547 sec_generate_session_id_cookie setting 1150034, 0.
[20/Apr/2004:05:05:47][58837.146861056][-conn1-] Notice: register/index.tcl line23 user_session_id: 410
[20/Apr/2004:05:05:47][58837.146861056][-conn1-] Notice: register/index.tcl line25 user_session_id from cookie: 0
[20/Apr/2004:05:06:05][58837.146861056][-conn1-] Notice: register/user-login.tcl line27 user_session_id: 410
[20/Apr/2004:05:06:05][58837.146861056][-conn1-] Notice: register/user-login.tcl line29 user_session_id from cookie: 0
[20/Apr/2004:05:06:05][58837.146861056][-conn1-] Notice: register/user-login.tcl line43 user_session_id from cookie: 0
[20/Apr/2004:05:06:06][58837.146861056][-conn1-] Notice: register/user-login.tcl line53 user_session_id from cookie: 0
[20/Apr/2004:05:06:06][58837.146861056][-conn1-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/register/user-new?email=user76%40dekka%2enet&persistent%5fcookie%5fp=1&return%5furl=https%3a%2f%2fdekka%2ecom%3a8443%2fecommerce%2fcheckout
[20/Apr/2004:05:06:06][58837.146861056][-conn1-] Notice: register/user-login.tcl line55 user_session_id from cookie: 0
[20/Apr/2004:05:06:06][58837.146861056][-conn1-] Notice: register/user-login.tcl line56 user_session_id: 410

[20/Apr/2004:05:06:06][58837.144527360][-conn2-] Notice: register/user-new.tcl line22 user_session_id from cookie: 0
[20/Apr/2004:05:06:06][58837.144527360][-conn2-] Notice: register/user-new.tcl line36, set user_id: 6833
[20/Apr/2004:05:06:30][58837.144527360][-conn2-] Notice: Security: 1082437590 sec_generate_session_id_cookie setting 1150034, 6833.
[20/Apr/2004:05:06:30][58837.144527360][-conn2-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/checkout

[20/Apr/2004:05:06:31][58837.146375680][-conn3-] Notice: checkout.tcl line15 from ad_conn, user_id: 6833
[20/Apr/2004:05:06:31][58837.146375680][-conn3-] Notice: checkout.tcl line17 user_session_id from cookie: 0
[20/Apr/2004:05:06:31][58837.146375680][-conn3-] Notice: user_id from ad_verify_and_get_user_id: 6833
[20/Apr/2004:05:06:31][58837.146375680][-conn3-] Notice: checkout.tcl line27 set from cookie, user_session_id: 0
[20/Apr/2004:05:06:31][58837.146375680][-conn3-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/checkout?usca%5fp=t

[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: checkout.tcl line15 from ad_conn, user_id: 6833
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: checkout.tcl line17 user_session_id from cookie: 411
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: user_id from ad_verify_and_get_user_id: 6833
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: checkout.tcl line27 set from cookie, user_session_id: 411
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: checkout.tcl line31 user_session_id from cookie: 411
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: checkout.tcl line34 user_session_id from cookie: 411
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: checkout.tcl line41 order_id:
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Error: shopping cart order has been lost, checkout.tcl line31
[20/Apr/2004:05:06:31][58837.140103680][-conn0-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/index