ExtCookieAuth
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
ExtCookieAuth allows to configure & setup cookies, which could be used
to check logged in user's authentication of drupal for any external file/webservice,
which is not possible to use within drupal.
After enabling this module site administrators are then able to
setup a cookie's name & key (which is used to encrypt/decrypt user information).
-- CONFIGURATION --
* Configure at Administration » Configuration » ExternalAuth.
-- USAGE --
* Site Administrator can enter a cookie & key name in the configuration form
* then Developers can use it as follow
$cipher = 'AES-256-CBC';
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher));
list($_COOKIE['yourscookie'], $iv) = explode('::', base64_decode($_COOKIE['yourscookie']), 2);
$arr = openssl_decrypt($_COOKIE['yourscookie'], $cipher, 'yourskey', 0, $iv);
$userinfo = (unserialize($arr));
print_r($userinfo);
