Purchase without Account

session left after guest account deleted - Purchase without Account

session left after guest account deleted

by Mikepo » Tue May 04, 2021 2:17 pm

If a customer doesn't complete the purchase, and after a few days admin deletes the guest account, the session remains on the customers PC and makes the shop appear to be logged in without account details such as name and address. This makes it look like the shop is not working properly. If the cookies are deleted then the shop operates as normal, but the customer is not aware that this is the solution.
Can this be resolved?

If ship in cart is installed then further php errors are shown on the screen, which makes the site looks broken.
Mikepo
Posts: 15
Joined: Mon Oct 26, 2020 12:58 pm
Contact:

Re: session left after guest account deleted

by Mikepo » Tue May 04, 2021 3:28 pm

phoenix v1.0.7.12
pwa version 4.3.4
php7.3
Mikepo
Posts: 15
Joined: Mon Oct 26, 2020 12:58 pm
Contact:

Re: session left after guest account deleted

by raiwa » Tue May 04, 2021 4:44 pm

Thanks, confirmed. I'll have a look on this but for:
"If ship in cart is installed then further php errors are shown on the screen, which makes the site looks broken":
- The same errors show on the core checkout pages.
- Error reporting should be switched off on a live store!

So the real problem is that this customer in this case can't neither logout nor create a new account.
For now just wait more days before deleting the guest accounts, depending on your session expire setting.
if your sessions do not get deleted after a few days, you could give this a try:
viewtopic.php?p=4217#p4217

The solution might be to delete also the customers session when deleting the guest account in admin. I'll check if I can add this in the next update.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: session left after guest account deleted

by Mikepo » Wed May 05, 2021 4:39 pm

Thanks @raiwa
My error_reporting is set to (0) and my shop, the test environment isn't.
--
"For now just wait more days before deleting the guest accounts, depending on your session expire setting".
--
how do you define the session expire setting?
Mikepo
Posts: 15
Joined: Mon Oct 26, 2020 12:58 pm
Contact:

Re: session left after guest account deleted

by raiwa » Wed May 05, 2021 6:13 pm

Please see the topic I posted above. Just a few messages before the one I linked.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: session left after guest account deleted

by raiwa » Fri May 07, 2021 11:03 am

Uploaded Version 4.5.1 with the fix for teh exposed problem.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact: