wp-e-commerce/WP-e-Commerce — pull request #840 by JeffPyeBrook (2014-01-17 19:02:35+00:00)
Title: Validate Customer Cookie Instead of Just Parsing

Instead of assuming the cookie value is valid if set use the exiting routine to parse and validate it.
There seems to be a case where outside code could call wpsc_get_current_customer_id() before the cookie
is validated, this eliminates the possibility that the cookie could be invalidated and cleared after
being used.

Fixes issue #839