|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
CFML Carrying Variables to next page
Okay, my boss and I are making some pages for an application using ColdFusion. We were originally going to put all of the questions on one page, but now we want to break it up into several pages. How do we carry the variables over to the next page? Once again, this has to be ColdFusion.
Thanks. :-) |
|
#2
|
|||
|
|||
|
You can:
pass them in the URL pass them as form fields store them in a shared scope (such as the SESSION scope) store them in a database
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
||||
|
||||
|
Which would be the safest? We're going to be passing very private information, such as social security numbers.
|
|
#4
|
||||
|
||||
|
Either session or form data. I'd say session, especially if you plan on using the data on multiple pages.
Database will leave a record, at least until you remove it. URL is very visible and would probably upset the user. |
|
#5
|
||||
|
||||
|
Great. So where can I find scripts, tutorials, etc. for setting sessions with CF?
|
|
#6
|
|||
|
|||
|
Store them in a database
I would suggest that you store them in a database.
Quote:
|
|
#7
|
|||
|
|||
|
There's nothing wrong with storing them as SESSION variables.
It's all in the docs! http://livedocs.macromedia.com/cold...cs/shared27.htm |
|
#8
|
|||
|
|||
|
You could also encrypt the values if you're extra cautious.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CFML Carrying Variables to next page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|