If you want your customers to access their sessions(e.g. the
cart session or login session) in your sitewhen they return after a certain
period of time, you can use this database session.
To set the database
sessions, please go to:
- VPCART Control Panel >Advanced Settings> Software Configuration,
- In the section 1. Setting Up Your System, click Session Variables & Use Of Cookies
The following settings can be set in the Software Configuration:
xautoupdatecartprices |
Setthis to Yes to Auto Update Cart Prices if const xsavesession="Yes". |
xsavesessioncookie |
Set this to Yes to use real cookies to save session key. |
xsavesessionexpirydays |
Enter how many days you want the database session to expire. For example, a value of1 will store the session for a one day period. |
xsessioncleanupinterval |
Time in hours to do file clean up when using Database Session mode. |
Database session has the ability to automaticallyupdate
product pricing in the cart session.
For example, if a customer adds product A with a price worth $100 in the cart, then the customer closes the site without undergoing the checkout process.
After a few days, the administrator of the site updates
product A to have a new price worth $120.
When the customer comes back to
the site after a week, for example, the customer willstill be able to see
product A in the cart with the new priceof $120.
In VPCart, we added two new configs for session
handling:
xkeepsession_enable |
Set this to Yesto enable to keep session and
your visitor will never timeout. |
xkeepsession_time |
Enter how many milliseconds to send request to server
if idle. |