Forum OpenACS Q&A: Re: Ecommerce 4.6.3+, new users lose basket contents on sign-up
Posted by
Torben Brosten
on 04/20/04 10:57 AM
Okay, got it to work by
1. passing user_session_id as a param from user-login.tcl to user-new.tcl
2. reinstating the user_session_id cookie from user-new.tcl
For the record, here's how the new-users jump through the ecommerce registration process:
[20/Apr/2004:08:30:56][58837.140103680][-conn0-] Notice: Huh? redirecting: http://dekka.com:8000/ecommerce/shopping-cart?product%5fid=3560 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: shopping-cart.tcl line40 user_id: 0 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: shopping-cart.tcl line48 from ad_conn, user_id: 0 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: shopping-cart.tcl line50 set from cookie, user_session_id: 414 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: shopping-cart.tcl line53 user_session_id: 414 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: shopping-cart.tcl line55 from cookie, user_session_id: 414 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: LARS: counter = 0 ; this_row? 0 ; next_row? 0 [20/Apr/2004:08:30:56][58837.146375680][-conn3-] Notice: shopping-cart.tcl line136 user_id: 0 [20/Apr/2004:08:31:00][58837.146375680][-conn3-] Notice: checkout.tcl line15 from ad_conn, user_id: 0 [20/Apr/2004:08:31:00][58837.146375680][-conn3-] Notice: checkout.tcl line17 user_session_id from cookie: 414 [20/Apr/2004:08:31:00][58837.146375680][-conn3-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/register/index?return_url=https%3a%2f%2fdekka%2ecom%3a8443%2fecommerce%2fcheckout&http_id=0&user_session_id=414 [20/Apr/2004:08:31:01][58837.146861056][-conn1-] Notice: Security: 1082449861 sec_generate_session_id_cookie setting 1150036, 0. [20/Apr/2004:08:31:01][58837.146861056][-conn1-] Notice: register/index.tcl line23 user_session_id: 414 [20/Apr/2004:08:31:01][58837.146861056][-conn1-] Notice: register/index.tcl line25 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: register/user-login.tcl line27 user_session_id: 414 [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: register/user-login.tcl line29 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: register/user-login.tcl line43 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: register/user-login.tcl line53 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/register/user-new?email=user74%40dekka%2enet&persistent%5fcookie%5fp=1&user%5fsession%5fid=414&return%5furl=https%3a%2f%2fdekka%2ecom%3a8443%2fecommerce%2fcheckout [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: register/user-login.tcl line55 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146861056][-conn1-] Notice: register/user-login.tcl line56 user_session_id: 414 [20/Apr/2004:08:31:20][58837.146377728][-conn4-] Notice: register/user-new.tcl line22 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146377728][-conn4-] Notice: register/user-new.tcl line24-9 test: ad_set_cookie user_session_id 414 [20/Apr/2004:08:31:20][58837.146377728][-conn4-] Notice: register/user-new.tcl line30 user_session_id from cookie: 0 [20/Apr/2004:08:31:20][58837.146377728][-conn4-] Notice: register/user-new.tcl line36, set user_id: 6837 [20/Apr/2004:08:31:44][58837.146377728][-conn4-] Notice: Security: 1082449904 sec_generate_session_id_cookie setting 1150036, 6837. [20/Apr/2004:08:31:44][58837.146377728][-conn4-] Notice: Huh? redirecting: https://dekka.com:8443/ecommerce/checkout [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: checkout.tcl line15 from ad_conn, user_id: 6837 [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: checkout.tcl line17 user_session_id from cookie: 414 [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: user_id from ad_verify_and_get_user_id: 6837 [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: checkout.tcl line27 set from cookie, user_session_id: 414 [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: checkout.tcl line31 user_session_id from cookie: 414 [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: checkout.tcl line34 user_session_id from cookie: 414 [20/Apr/2004:08:31:45][58837.144527360][-conn2-] Notice: checkout.tcl line41 order_id: 3000109