diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2014-02-27 14:46:39 -0800 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2014-02-27 14:46:39 -0800 |
commit | 9463aa70c246be655a0736a88e15c0ffdc2454b5 (patch) | |
tree | 9aeab9a85bac4d9ec111ae78a8fb3c1f661ac9a3 /includes/common.inc | |
parent | 4349719c9779e835a839b08d272572d459dd9c62 (diff) | |
download | brdo-9463aa70c246be655a0736a88e15c0ffdc2454b5.tar.gz brdo-9463aa70c246be655a0736a88e15c0ffdc2454b5.tar.bz2 |
Issue #2188289 by Jaypan, sun, Berdir: Fix docs for drupal_get_token()
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index 40a7919e0..378a3a7cd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5067,6 +5067,11 @@ function drupal_get_private_key() { * @param $value * An additional value to base the token on. * + * The generated token is based on the session ID of the current user. Normally, + * anonymous users do not have a session, so the generated token will be + * different on every page request. To generate a token for users without a + * session, manually start a session prior to calling this function. + * * @return string * A 43-character URL-safe token for validation, based on the user session ID, * the hash salt provided from drupal_get_hash_salt(), and the |