Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    save data, after session times out

    Hi,

    I developed this form, and it's very large. The client tells me it could take up to two hours for someone to complete the form, which means I'm going to run into the session timing out, and the users loosing their data.

    Is there a smart/easy way to work around this, aside from increasing the timeout on the server?

    Thanks,
    -Justin

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use a db.
    store all data in a db (maybe a table with a column for each sessionvariable that you use ?) and then sent the primary key value of this table inside each for as a hidden field --> make sure to encode the PK value so that users can't manipulate them.

    This way you can then select the data from that table using the decoded PK value inside your where-clause
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Assuming the users are required to login to fill out this form then you could provide a save button on each page to save their current data to a database as Raf suggested and each time they go to a new page of the form save the data from that page to the database automatically as well.

    I would hope that you provide a login for this as you could then implement a feature in conjucntion with the save button for them to come back later to finish filling out the form.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    another option would be to use persistent cookies ...

    you could encode the data using the password as salt. then after login, store the pwd in a sessionvariable (i know, not 100% OK) and then if this sessionvariable is set on each pagerequest + use it to decode the values.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •