Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Answer: carrying a lot of vars from page to page with hidden()

by chromatic (Archbishop)
on May 11, 2000 at 01:11 UTC ( #11063=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > carrying a lot of vars from page to page with hidden() - Answer contributed by chromatic

Another option is to maintain the state via some method on the server, and only pass a session ID to and from the client. You could use a hash key (and implement some caching mechanism so that they expire after so many minutes) to an internal memory structure (if you use a persistent CGI application), or a unique ID into a database table or a temporary file.

You could store this session ID in a cookie or as a hidden field.

  • Comment on Answer: carrying a lot of vars from page to page with hidden()
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-12-03 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.