[support] Passing Variable between Forms
Metzler, David
metzlerd at evergreen.edu
Wed Oct 22 22:33:21 UTC 2008
Yes and while we're at it, serialization is unneccesary unless you're
talking about objects. I store nested arrays of data in session
variables all the time ind drupal code.
-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Jonathan Hedstrom
Sent: Wednesday, October 22, 2008 1:55 PM
To: support at drupal.org
Subject: Re: [support] Passing Variable between Forms
Earnie Boyd wrote:
> This suggestion is a misuse of the variable_set/get methods as a
> resolution to the OP's question. Store the serialized data in a
> $_SESSION['mymod'] data and then set the default values of your new
> form using the unserialized data from $_SESSION['mymod']. However, if
> you have sensitive data you'll need to encrypt and decrypt it as well
> as serialize the data.
>
What would encrypting the sensitive data in the $_SESSION variable
accomplish, since the final resting place (the Drupal node/user/variable
tables etc), aren't encrypted?
Cheers,
Jonathan
--
Jonathan Hedstrom OpenSourcery
http://opensourcery.com Technology for Good
More information about the support
mailing list