Search code examples
sessionjoomla2.5session-statevirtuemart

How to featch data, in which state session is end in joomla 2.5?


Hi I am working on abandoned cart module in joomla 2.5.8 store which i developed with help of virtuemart 2.0.14.

Now I am able to find some related data from the joomla's session table but i am not able to find in which stage session is expire (eg. has user close browser or quit at 1st step of checkout or has user quit or close browser before checkout process)I mean user state at the closing or quit browser.

So please help me or guide me to fetch user state when he/she had quite or close the browser.


Solution

  • There is no way you can find whether user closes browser or not closed using session data. Session data is stored on your server and will expire as per your server session expire settings.

    If you would really like to know user browser closing status, you need to write some special javascript function to detect when browser is being closed, and call server an ajax request to expire the session or some other function.