Temporary Cache

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Howard

    Temporary Cache

    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.



    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?


  • Scott M.

    #2
    Re: Temporary Cache

    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.


    "Howard" <howdy0909@yaho o.com> wrote in message
    news:ur0hl0CiGH A.1272@TK2MSFTN GP03.phx.gbl...[color=blue]
    > 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?
    >
    >[/color]


    Comment

    Working...