magenxcommerce / module-persistent
N/A
Installs: 108
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.3.0||~7.4.0
- magenxcommerce/framework: 103.0.*
- magenxcommerce/module-checkout: 100.4.*
- magenxcommerce/module-cron: 100.4.*
- magenxcommerce/module-customer: 103.0.*
- magenxcommerce/module-page-cache: 100.4.*
- magenxcommerce/module-quote: 101.2.*
- magenxcommerce/module-store: 101.1.*
Replaces
- magento/module-persistent: *
- dev-placeholder
- dev-default
- dev-2.4.3-release
- 100.4.3.x-dev
- 100.4.3
- 100.4.2.x-dev
- 100.4.2
- 100.4.1.x-dev
- 100.4.1
- 100.4.0.x-dev
- 100.4.0
- 100.3.7.x-dev
- 100.3.7
- 100.3.6.x-dev
- 100.3.6-p1
- 100.3.6
- 100.3.5.x-dev
- 100.3.5
- 100.3.4.x-dev
- 100.3.4-p2
- 100.3.4
- 100.3.3.x-dev
- 100.3.3
- 100.3.2.x-dev
- 100.3.2
- 100.3.1.x-dev
- 100.3.1
- 100.3.0.x-dev
- 100.3.0
- 100.2.7.x-dev
- 100.2.7
- 100.2.6.x-dev
- 100.2.6
- 100.2.4.x-dev
- 100.2.4
- 100.1.6.x-dev
- 100.1.6
- 2.4.3.x-dev
- 2.4.2.x-dev
- 2.4.1.x-dev
- 2.4.0.x-dev
- 2.3.7.x-dev
- 2.3.6.x-dev
- 2.3.5.x-dev
- 2.3.4.x-dev
- 2.3.3.x-dev
- 2.3.2.x-dev
- 2.3.1.x-dev
- 2.3.0.x-dev
- dev-100.3.4-p2
- dev-100.3.6-p1
- dev-2.3.6-p1
- dev-2.4.1-p1
- dev-2.4.2-p1
- dev-2.4.2-p2
- dev-2.4.3-p1
- dev-2.4.3-p2
- dev-2.3.7-p1
- dev-2.3.7-p2
This package is auto-updated.
Last update: 2024-11-21 11:49:27 UTC
README
This module enables setting a long-term cookie containing internal id (random hash - to exclude brute force) of persistent session for customer. Persistent session data is kept in DB - so it's not deleted in some days and is kept for as much time as we need. DB session keeps customerId + some data from real customer session that we want to sync (e.g. num items in shopping cart). For registered customer this info is synced to persistent session if choose "Remember me" checkbox during first login.
Installation
Before installing this module, note that the Magento_Persistent is dependent on the following modules:
Magento_Checkout
Magento_PageCache
The Magento_Persistent module creates the persistent_session
table in the database.
This module modifies the following tables in the database:
quote
- adds columnis_persistent
All database schema changes made by this module are rolled back when the module gets disabled and setup:upgrade command is run.
For information about a module installation in Magento 2, see Enable or disable modules.
Extensibility
Extension developers can interact with the Magento_Persistent module. For more information about the Magento extension mechanism, see Magento plug-ins.
The Magento dependency injection mechanism enables you to override the functionality of the Magento_Persistent module.
A lot of functionality in the module is on JavaScript, use mixins to extend it.
Events
The module dispatches the following events:
Controller
persistent_session_expired
event in the\Magento\Persistent\Controller\Index\UnsetCookie::execute
method
Observer
persistent_session_expired
event in the\Magento\Persistent\Observer\CheckExpirePersistentQuoteObserver::execute
method
For information about an event in Magento 2, see Events and observers.
Layouts
For more information about a layout in Magento 2, see the Layout documentation.
Additional information
More information can get at articles:
Cron options
Cron group configuration can be set at etc/crontab.xml
:
persistent_clear_expired
- clear expired persistent sessions