Re: Array security?
| From: | Rasmus Lerdorf | Date: | Thu, 29 Jun 2000 02:38:35 +0000 |
| Subject: | Re: Array security? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3724@lists.php.net to get a copy of this message | ||
> I have been passing arrays in forms using hidden types and using the implode
> and explode functions in php. The question I have is been asking myself is
> there a better way and more secure way to pass these arrays because all you
> have to do is view the source of the page to see all the values etc. What I
> want to do is make it to where people can't see these values or anything of
> that nature. I'm at the intermediate level of php programming so I would
> think that there has to be a better and more secure way of passing arrays
> between forms.
Just pass a unique identifier to the data and store the data somewhere on
your server. Then use your unique identifier to fetch it back on the next
request once the user sends you the unique identifier back. This is the
basic logic behind sessions, by the way.
-Rasmus