Forums
 This topic is locked 
             session request querystring
 22 May 2009  23:04:16 bob smith posted: 
  Situation: I have ad units on other sites and when the user comes to my site I want to capture the string on the first page visit per session.Goal: Capture initial visits page querystring and hopefully visitor fills out my form and then I would capture the querystring.
Problem: I am able to capture a query string from a single page and retrieve it later on another page during the session. I need to expand this idea so I can capture a query string from any page on my site and not just one single isolated page. So, my thinkings would be that I need to create a test upon capturing the querystring for the first time, and if the user goes to another page that either has a string or not that it doesnt over ride the the first captured querystring. Any ideas on how to do this, as I am stumped. I am using .asp with no code behind and the code that I am capturing the query is <%Session("RefID"
Any help would be great.
Replies
 Replied 21 Sep 2009  18:26:56 
   21 Sep 2009  18:26:56 dave blohm replied: 
  why not make the page name  the name of the session variable
<% session(request.servervariables("script_name"
) = request.querystring("id"
 %>
 
  <% session(request.servervariables("script_name"
 Replied 21 Sep 2009  19:55:29 
   21 Sep 2009  19:55:29 Patrick Julicher replied: 
  Hi Bob,
I agree with Dave. You need unique session names and the page name would work.
Kind regards, Patrick
  I agree with Dave. You need unique session names and the page name would work.
Kind regards, Patrick
