magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Impossible to retreive the customer id of the session in an external script

Open torresl opened this issue 13 years ago • 0 comments

I created an external script test.php of Magento But, i don' t succeed to retreive the customer id of the session
the script is as follows : "

getCustomerId() ; echo "customer id :".$customer_id."\n"; ?>

" To test, firstly, i authentificate a user via Magento. Secondly, i launch the script test.php. But the customer id isn' t displayed.

Thanks to explain how to retreive session customer data in an erternal script ? .

torresl avatar Dec 20 '12 23:12 torresl