Commit Graph

19 Commits

Author SHA1 Message Date
James Golovich 44d2552798 Mark session clean after commiting data
If someone is calling save_data() manually in addition to WooCommerce calling it the data is saved twice regardless of
any new data.
2015-02-20 23:55:24 -08:00
Mike Jolley 5695f514ed get_session_data() check to see if user has session before getting option
Closes #7185
2015-01-23 11:14:30 +00:00
Mike Jolley e8d47748ea Session handler doc blocks 2015-01-23 11:14:30 +00:00
Ross McKay 648040d458 Don't return option_value from cleanup_sessions() query, no longer required 2014-12-09 08:16:40 +11:00
Ross McKay d37d58d19f Escape `_` in LIKE to allow index search
Also filters for expired sessions in DB, not PHP.
Fixes #6916
2014-12-09 08:07:12 +11:00
Ross McKay ee0cbb27c6 only delete sessions from object cache if using persistent object cache 2014-12-08 09:04:55 +11:00
Ross McKay 95a25d3023 Delete cached sessions when clearing expired sessions
Fixes #6907
2014-12-06 18:43:56 +11:00
shivapoudel 2200a3ae2e Absolute path fix for class-wc-session-handler.php 2014-09-21 00:44:26 +05:45
Mike Jolley 6323f1c5c2 Stronger session ID generation 2014-05-20 11:08:31 +01:00
Mike Jolley 41eab15b13 Clear sessions after ordering/on logout 2014-05-20 10:01:26 +01:00
Mike Jolley 488f24f01b Prevent empty session data being stored until a cookie or session exists to retrieve it. 2014-05-08 10:36:19 +01:00
Gerhard daf4c4ff9f Fix _wc_session_expires autoloading 2014-04-08 09:35:04 +02:00
Mike Jolley 6deac5cf4b Chunk option names in cleanup_sessions() Closes #5225 2014-04-01 15:33:00 +01:00
Mike Jolley b1df70f17e wc_session_use_secure_cookie filter 2014-03-19 09:16:28 +00:00
Mike Jolley 95242473c8 Cleanup sessions - CONCAT is too slow.
Being tested in https://woothemes.zendesk.com/agent/#/tickets/133706
2014-01-13 10:45:35 +00:00
Mike Jolley 47df526518 Prepend main WC Session cookie with 'wp' so batcache doesn't cache pages, and set cookie only when cart has contents. #3513 2013-10-17 15:29:53 +01:00
Mike Jolley f0d255ac9c Remove private methods from session handler. Closes #3759 2013-09-13 13:39:46 +01:00
Mike Jolley 2db3d24a82 Enforce session as array data, and settings api tweak for special chars. Closes #3135. 2013-06-14 14:42:28 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00