It is currently 25 May 2018, 09:52




 Page 1 of 1 [ 8 posts ] 
Author Message
 Post subject: Save the items for later in shopping cart
PostPosted: 24 Jan 2018, 17:40 
True fan
True fan
User avatar

Joined: 15 Apr 2012, 10:36
Posts: 452
Location: Norway
Has thanked: 2 times
Been thanked: 0 time
Is there a possibility for implementing this feature?
When my account got automatically logged out after a while, I lost all the items that I had added to the shopping cart.
It would fit nicely beside the "Update you shopping cart" button.
_________________
CLD-3030, LX-600, CLD-97, CLD-D925, CLD-1750, Yamaha ADP-1 AC3.
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 25 Jan 2018, 13:22 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 1924
Location: Tg Pagar, Singapore
Has thanked: 43 times
Been thanked: 58 times
laserpaal wrote:
Is there a possibility for implementing this feature?


Hello!

Everything is possible :-)

laserpaal wrote:
When my account got automatically logged out after a while, I lost all the items that I had added to the shopping cart.
It would fit nicely beside the "Update you shopping cart" button.


The technical underlying problem is that the cart can be kept in (at least) 3 different ways:

  1. COOKIE level - but then when you use a different device, the cart is gone because the cookie is local to your machine
  2. SESSION level - it follows your login/account but will expire when PHP5 decides to make a round of clean-up and delete too old sessions --- I coded this one and it should stay alive for some time before disappearing
  3. DATABASE level - persistent but will require a major rewrite of the Cart code

I added one item unlikely to sell any time soon in my own cart.
Let's see how long it stays there while I reconnect from different devices.

Julien
_________________
Shop on LDDb / Shop on eBay SG / LDDb on Facebook!
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 25 Jan 2018, 16:16 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 1924
Location: Tg Pagar, Singapore
Has thanked: 43 times
Been thanked: 58 times
admin wrote:
SESSION level - it follows your login/account but will expire when PHP5 decides to make a round of clean-up and delete too old sessions --- I coded this one and it should stay alive for some time before disappearing


One possible tuning that I didn't revisit when reinstalling the server from scratch was the PHP "session.gc_maxlifetime" currently set at 1h:

session.gc_maxlifetime   3600


Let's make it 24h as a test.

session.gc_maxlifetime   86400


Julien
_________________
Shop on LDDb / Shop on eBay SG / LDDb on Facebook!
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 26 Jan 2018, 09:05 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 1924
Location: Tg Pagar, Singapore
Has thanked: 43 times
Been thanked: 58 times
So far the item I put in cart at 9:30am is still there more than 6 hours later.

Reason good enough for hope? :-)

Julien
_________________
Shop on LDDb / Shop on eBay SG / LDDb on Facebook!
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 27 Jan 2018, 11:48 
True fan
True fan
User avatar

Joined: 15 Apr 2012, 10:36
Posts: 452
Location: Norway
Has thanked: 2 times
Been thanked: 0 time
admin wrote:
So far the item I put in cart at 9:30am is still there more than 6 hours later.

Reason good enough for hope? :-)

Julien


I would say that is great reason enough for hope! Thank you, Julien. You strive to keep the forum up to date, for that I'm grateful! :)
_________________
CLD-3030, LX-600, CLD-97, CLD-D925, CLD-1750, Yamaha ADP-1 AC3.
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 27 Jan 2018, 18:59 
Jedi Knight
Jedi Knight
User avatar

Joined: 03 May 2004, 19:05
Posts: 4409
Location: United States
Has thanked: 19 times
Been thanked: 27 times
Yes, thanks for keeping it running, could be running longer than actual LD players, Literally.
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 28 Jan 2018, 06:38 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 1924
Location: Tg Pagar, Singapore
Has thanked: 43 times
Been thanked: 58 times
rein-o wrote:
Yes, thanks for keeping it running, could be running longer than actual LD players, Literally.


Then we can still display these gorgeous LD cover art on the wall :-)

Julien
_________________
Shop on LDDb / Shop on eBay SG / LDDb on Facebook!
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 02 Mar 2018, 23:49 
First post
First post
User avatar

Joined: 27 Feb 2018, 00:01
Posts: 1
Location: United States
Has thanked: 0 time
Been thanked: 0 time
Items are currently not saving in the shopping cart. Added to cart, signed out and then back in and they were no longer there.
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: