Here is the code for anyone who is interested:
<!--- first time a user performs a search --->
<cfif NOT IsDefined('session.searchresults') and isDefined("url.DELETESESSIONINFO")>
<cfquery name="session.searchresults" datasource="#request.dbName#">
EXEC iSearch blah blah...
</cfquery>
<!--- If the user does another search (new search) I'm deleting the session info --->
<cfelseif IsDefined('session.searchresults') and isDefined("url.DELETESESSIONINFO")>
<cflock scope="SESSION" timeout="10" type="EXCLUSIVE">
<cfset temp = structdelete(session,"searchresults")>
</cflock>
<cfquery name="session.searchresults" datasource="#request.dbName#">
EXEC iSearch blah blah...
</cfquery>
</cfif>
<cfoutput group="DatTime" query="session.searchresults" startrow="#start#" maxrows="#display#">
<!--- output the columns --->
</cfouput>
Many thanks again for all your help
regards,
cfcoder
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

