Temporary Cache

H

Howard

This is what I need to do.

User goes to page1.aspx, on that page there's a textbox and a submit button

the user types in his name "john doe" then clicks submit.

Then the server takes him back to page1.aspx and displays a url on the page.

www.mywebsite.com/page2.aspx?cache=1002

If the user goes to that page it will show what he typed in page1 which
would be "john doe"

so basically when the user submits his input the server creates a temporary
cache with a unique number and the corresponding input

1002 | "john doe"

And the cache has a limited time span.



Is this possible?
 
S

Scott M.

upon the first submit, just add the data to the Cache (or some other
temporary persitant storage medium - could even be a database). Then, you
just write your URL back to the page with a querystring that would be
sufficient to retrieve the data (primary key of a db record perhaps). This
querystring is used to lookup the data and display it.

If you use a database, you can also write a timestamp into the record. Then
you can use this to determine if the data has expired or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top