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.
If you actually do want to act as the user you are loading, it is essential to call
session_save_session(FALSE);
first. See Safely impersonating another user for more information.
session_save_session() doesn't exist in d7.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1031686.patch | 950 bytes | rschwab |
Comments
Comment #1
cweagansOh, link is here: http://api.drupal.org/api/drupal/modules--user--user.module/function/use...
Comment #2
cweagansPer this link, it should now be drupal_save_session()
http://drupal.org/node/218104
Comment #3
rschwab CreditAttribution: rschwab commentedYep, this is a true story. A grep confirms this is the last place session_save_session is referenced in D7.
Comment #4
cweagansThat'll do it. This patch can be committed to 7 since it's just a doc fix, right?
Comment #5
jhodgdonI second the motion on this patch.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.