Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using Dynamic Key
====================================
If specify the $key as ENCRYPT_DYNAMIC_KEY then it will use dynamic key based
on below variables.
// Developer needs to assign any userid to this session variable
$_SESSION['ENCRYPT']['uid']
// Developer needs to assign guid of that user used above to this session
// variable.
$_SESSION['ENCRYPT']['guid']
// If either of the above session variables are not available then fetch info
// from the current user.
global $user
$user->uid
$user->uid
Comment | File | Size | Author |
---|---|---|---|
#2 | encrypt-using_dynamic_key-01-01.patch | 3.8 KB | SoumyaDas |
Comments
Comment #2
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedAdding patch for this (encrypt-using_dynamic_key-01-01.patch ).
Comment #3
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #4
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #5
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commented