Connecting Tech Pros Worldwide Forums | Help | Site Map

Saving Values using an alternative to Sessions

Newbie
 
Join Date: May 2009
Posts: 9
#1: Jun 24 '09
I am saving a value ID using sessions on this feedback Form, but at times, if the visitor takes too long to type a a feedback, the session times out and the user received an error message.

Please note, my session is set to 20 mn on the application.cfm, I do not want to increase its value because of other issues that might arise.

I'd like to use an alternative way to sessions to save the Value ID - I am sure there is a way, but do not know what it is.

Here is what I am using now:
Expand|Select|Wrap|Line Numbers
  1. <cfset session.SectionID = #SectionID#>
Any input would be appreciated.

Thank you.

-AJ

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jun 25 '09

re: Saving Values using an alternative to Sessions


How about generating this unique ID after submission?
Newbie
 
Join Date: Oct 2009
Posts: 2
#3: 1 Week Ago

re: Saving Values using an alternative to Sessions


Hi,

The way i see it, you have two options.
1You can use the Client variable scope to save the Value ID like this
Expand|Select|Wrap|Line Numbers
  1. <cfset Client.SectionID = #SectionID# />
2. You can save the Value ID on the Client Side, using Hidden Field like this;
Expand|Select|Wrap|Line Numbers
  1. <input name="SectionID" value="#SectionID#" type="hidden" />
Hope it works, lol
Reply