Jump to content

Module to remove a page on session end


Recommended Posts

I'll build a module which will remove the cart-pages of guest users. There are a few options. 

  • Update a timestamp each time the user visites a page. Remove the cart after "sessionExpireSeconds".
  • Try to hook into session delete and remove the cart in the same run. 

I would like to use the second version, but I use the SessionDB Module and the gc() function does remove sessions without noticing pw about it. Is there a way I miss to do this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...