Create/Check For Cookie And Keep Persistent Variable For Tracking Referrals From Affs

How do I track a referral from an affiliate site through a cookie. I would like the aff links to be formatted

Code:

View Replies


ADVERTISEMENT

Non Persistent Cookie In A Web Form.

Im using classic ASP (3.0) and I have a web farm with 2 webservers
(webserver A and webserver B, both windows server 2003). I do not want
to store any client specific information on the webserver (therefore do
not intend to use the session object- as you cannot gaurantee which
server the user will go to). I want to store a small value (e.g. a Y/N
value or an Id) on the client machine for the duration of their
browsing session, hence I want to use a non persistent cookie (in
client memory) not a persistent cookie that will be written to disk.

Q. Therefore if I create a non persistent cookie (i.e. it resides in
the client browsers memory) and set this when the user was on webserver
A, can I read the value server side on subsequent requests even if the
user is redirected back to webserver B? As the webservers are part of
the same domain name Im assuming I can..?

Q. Using non persistent cookies (in client in memory) im assuming the
session Id that gets created has no use, as I am using client side
storage, hence it is worth disabling this on the webserver for
performance reasons?

Q. Is there anyway using non persistent cookies that a user can see the
values of this cookie client side, are their any downloadable tools for
example they can run?

Im aware of the issues with size of using cookies and users can disable
them, my question is more related to using them in a web farm. Im also
not intended in the short term to upgrade to asp.net as Im aware there
are alternatives for state storage in this. Hope someone can clarify
these points for me. Note: I see many articles talking about cookies
but none relating to web farms, those that do talk solely about the
session object (Server side), none really go further to talk about (non
persistent / persistent cookie usage with web farms client side.

View Replies View Related

Non Persistent Cookie In A Web Farm Using Classic Asp (3.0)

Im using classic ASP (3.0) and I have a web farm with 2 webservers
(webserver A and webserver B, both windows server 2003). I do not want
to store any client specific information on the webserver (therefore do
not intend to use the session object- as you cannot gaurantee which
server the user will go to). I want to store a small value (e.g. a Y/N
value or an Id) on the client machine for the duration of their
browsing session, hence I want to use a non persistent cookie (in
client memory) not a persistent cookie that will be written to disk as
a file.

Q. Therefore if I create a non persistent cookie (i.e. it resides in
the client browsers memory) and set this when the user was on webserver
A, can I read the value server side on subsequent requests even if the
user is redirected back to webserver B? As the webservers are part of
the same domain name Im assuming I can..?

Q. Using non persistent cookies (in client in memory) im assuming the
session Id that gets created by IIS has no use, as I am using client
side storage, hence it is worth disabling this on the webserver for
performance reasons?

Q. Is there a way, when using non persistent cookies that the client
user can see the values of this cookie client side, are their any
downloadable tools for example they can run?

Im aware of the issues with size of using cookies and users can disable
them, my question is more related to using them in a web farm. Im also
not intended in the short term to upgrade to asp.net as Im aware there
are alternatives for state storage in this. I hope someone can clarify
these points for me. Note: I see many articles talking about cookies
but none relating to web farms and cookies, those that do talk solely
about the session object (Server side), none really go further to talk
about (non persistent / persistent cookie usage with web farms client
side.

View Replies View Related

How To Create Impression Tracking With Image?

I need to create an impression tracking with just an image. My goal is to count (+track referrals) page impressions.

I have no clue of doing so. I know there is a way to do it using javascript and asp.

View Replies View Related

IF Statement To Check If The Cookie Exists

How do i relate to cookies? i mean if i want do to an IF statement to check if the cookie exists or something what do i write?

View Replies View Related

Is It Possible To Check If Session Cookie Exist With A Simple If Then Statement?

I am making a news letter application for my company. The idea is that if the cookie (fictional name Frankie ) don't exist a newsletter is being sent to all subscribers.

View Replies View Related

How Do I Create A Privacy Policy For A Cookie?

How can I create a privacy policy for a cookie? I have an invisible image loading on a 3rd-party hosted site to help me watch traffic, but the cookie I'm using is being rejected by IE6 browsers on their default Security setting because I lack a privacy policy.

How can I add a privacy policy to the cookie I'm creating (with ASP)?

View Replies View Related

What Event To Create Cookie When Leaving A Page?

I want to create a cookie that will expire in a few mintues after a user leaves my page so that they can return without having to login again if they were only gone for a few minutes. I tried putting this code in the Page_Unload event but got an error message that cookies not supported here.
....
Sub Page_Unload 'this not working here
Dim objCookie As HttpCookie
objCookie = New HttpCookie("mycookie", "cookie1")
objCookie.expires = DateTime.Now.AddMinutes(2)
Response.Cookies.Add( objCookie )
End Sub
</script>

What is the best place to create a cookie that will only last for a few mintues after leaving a page.

View Replies View Related

Session Variable Or Cookie

First, I like to know if I can specify how long a session variable could expire?

I am having problem with user logged in period when using session variable.

When I logged in and go away from keyboard for like 10mins. By then I have to login again in order to post or any website features that requires login.

I have not yet create a cookie for the user when they are login.

What is the proper way of doing it?

View Replies View Related

Object Required For Cookie Variable??

can anyone tell me why i keep getting this error the cookie data shows fine when i do a respone.write ...

View Replies View Related

Check Variable

I am attempting to write a piece of code and I need to determine if a passed variable contains letters. My intVar1 is from a response.form which should be a number, but of course the user could input a string instead of a number in the form. This all works unless I give it something other than a number

Here is my current code:
if intVar1 <> "" Then
intFixVar1 =int(intVar1)
if intFixVar1 < 1 Then
Response.Write "my message"
else
if intFixVar1 > intVar2 Then
Response.Write "my other message"
else
intVar3 = intFixVar1
End if
end if
end if

View Replies View Related

Check Variable Exist

how asp can check whether a variable exist or not, like exist(name), or exist(hello)
return true and false.

View Replies View Related

Check If Variable Is Declared

i've had a few years experience in PHP, but i'm very very new to ASP. I need to display a line of text if the text exists, and show nothing if the text does not exist. I tried using a straight forward If Then statement asking if myVariable = "" to see if it's empty. The problem is i get an error telling me that myVariable has not been declared.

View Replies View Related

Create New Variable

is it possible to create a new variable from an array element eg:

myArray=array("a","b","c")

var myArray(2) = "hello" 'create a variable called 'b'

response.write(b) displays 'hello'

View Replies View Related

Check Box Equal To A Variable (moved From Html)

I Have a form, and in that form I have a check box, I wish to say " If Checkbox is checked Then variable = true Else Variable = false". Here is what I have as far as code goes...

Thus far the variable is always false, leading me to believe that my syntax is wrong. All the SQL part of this is tested as working (Included to give a perspective on what I am trying to do) so you can for the most part ignore it. It is the form part that has a problem. Code:

View Replies View Related

Back + Variable Change; Blank Check; & Open Popup

I have an ASP page that goes from part to part based off of a session variable. Is there any way to check for when the user clicks back so that I can change the variable. If not I will have to separate all of the pages out and that is just not fun.

So, when the user clicks back, the session variable gets changed. That is what I am looking for.

P.S. Is there a faster way to check if a variable is blank other than an
If Bleh="" Then
<some code>
End If

P.P.S. When a submit button is clicked, I want to open a new window with a message like "Be sure to fill out this on page X"

View Replies View Related

Persistent Values?

I'm a (moderate) newbie to and I'm building an ASP/VB db-driven site where the user selects a brand from a menu, this determines the contents for another menu with models. Selecting a model displays details about that model. Nothing too original here Its a small low traffic site with no ecommerce elements - just window shopping.

My questions is : I need to know on all pages what the current brand and model are (and modify these when the user changes them).

From what I understand there are 3 (?) methods: server vars, session vars or hidden fields. Which should I use for this purpose and can anyone point me to some good related examples/tutorials? (I've read the stuff on this site of course).

View Replies View Related

Persistent Cursor

I have a logon field. When data is entered, the user is taken to a protected page.
The problem/question is: Whe you click the back button and return to the logon page,the user data is still in the field. I want it cleared when the user returns to the logon page.How should I approach this problem. Java?

View Replies View Related

Persistent Cache Initialization Failed

In my event log on my IIS 6.0 Windows 2003 Server I get the following Active Server Pages Error

Error: The Template Persistent Cache initialization failed for Application Pool 'DefaultAppPool' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..

View Replies View Related

Response.cookie In Session_onstart Event And IE 6.0 Cookie Acceptance

When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.

I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?

View Replies View Related

Session Cookie Vs. Regular Cookie

I want to know what's the differences between session cookie and regular cookie.

In ASP, when we create cookie, we do the following to identify an user:

Response.Cookies("name") = value

Is this regular cookie? How about session cookie? and when to use which?

View Replies View Related

Tracking Changes

It's an ASP-built Intranet app, so I can't show you the site, but I'll show
you screen shots if you think that will help. The app is to keep track of
issues called in to a Support help desk. These issues are called tickets.
Each ticket has one and only one row in this given table (let's call it
Ticket). Any additional info on a ticket will be entered into another table
(called History), so it's possible to have many rows in that table for each
one in the table I am focusing on.

The app in question uses SQL Server 2000 as its datasource.
The table contains info entered when a ticket was created, but I have
included a mechanism for users to go back and change info that was
originally entered. This leads me to my dillemma. The boss wants me to find
a way to keep up with changes to that original info. It seems logical to
keep this info in another table. Let's call this new table Audit.

I have explored using a trigger which would create a row in the Audit table
whenever an Update was used on the Ticket table. The problem with that is,
you have one row per changed field, and that could add up. Actually, it's
not a problem, just something to consider.

The alternative is to have ASP code which would, when any edits are made,
manually compare each new value in the form to each existing value, and
record those items which have changed. This seems like it would put a lot of
work on the web server. There are generally maybe 10 people using this app
at any given time, so that may or may not be important.

For the record, the Ticket table has about 40 fields. The PK is a single
field, and it's an Identity with type int. Most of the other fields are int,
as they contain FKs that point to values contained in statics tables. There
are a few tables of type varchar, and 3 fields which contain large amounts
of data, as they are description fields. Users type in up to 3000 characters
here, but it's typically a few hundred characters.

View Replies View Related

Tracking

there is a form(ex=subscribe.asp) which is an asp page where users can sign up for newsletters. this asp file calls a php file in the form action which i have written and this php file processes information user entered and inserts to the database. this works fine. in the website there are numerous pages from which a user can click on an image and be redirected to subscribe.asp and fill in the form.

I need to know which page the user was before subscribe.asp ex = aboutus.asp, contactus.asp etc. is there a way i can pass information from this subscribe.asp file to the php file which the php file can read and find out the source of the previous page (ex= aboutus.asp, contactus.asp etc).

View Replies View Related

Tracking Emails

anyone know a good way of tracking an email so that i know if theyve been
opened? and preferably somethign where i can identify the recipient
(matching with our crm)?

View Replies View Related

Session Tracking

i want to display the session time out message when i click a button. the msg should be displayed in alert box.

View Replies View Related

Referral Tracking

My goal is to be able to advertise on different web sites i.e. fortune.com, wsj.com, etc. and when a prospect clicks my ad/link they are sent directly to a contact form that I've created where it will automatically populate a field "referral" with the referring url (wsj.com, etc.) as where the user came from.

However, not all my leads/prospects will be coming from referral urls and searches. Some might be going directly to my web site via www.mydomain.com. Therefore, when a prospect comes that way, the ASP contact form should adjust to compliment that prospects entry. So, the "referral" field would be a drop-down that has these options:

- Option 1
- Option 2(Other Publications)
- Option 3
- Option 4(Referral)

And, if the user chooses "option 2" another select box appears with a list of publications, i.e. Forbes, Business Week, Fortune, Leaders, etc.
And, if Option 4 is chosen, then Employee, friend, owner, and other would appear in a select box.

Currently, I have the contact form working so that the user must specify where he/she came from as I described it above. I am simply looking for a piece of code to automate the referral process if a prospect comes from an online ad or specific url (i.e. www.mydomain.com/coupon1).

View Replies View Related

Tracking Mail

I have a small email newsletter (100% double-opt-in, less than 400 subscribers) that we publish with CDO.Message and CreateMHTMLBody (on Win2k server, so we are using CDONTS).

We are using CreateMHTMLBody because the newsletter is dynamically generated, pulling data 3 different data sources, otherwise it would be a cinch to use the existing tracking bug we utilize on simpler mailer that runs with CDO.NewMail and manual composition of the HTML code.

View Replies View Related

Link Tracking

direct me on the right road to doing link tracking. Im trying to create a system for my website, where as you click on a link or image on my webpage, you get directed to the detail page and also at the same time increment up the hitcount on that link.

I tried to use a onclick function, but since that is client side code it didnt work. The idea behind it is to get my products displayed to my customers, with the most popular items first. This seemed so simple when i set out on this project, but right now ive hit a wall. Im using dreamweaver, have got quite a good knowledge of ultradev and all that goes with it. Is there a way in dreamweaver for me to do this?

View Replies View Related

Tracking Users

I am trying to create a website for students where they have to log in before they can access any of the materials on the site. Therefore the login will be done on the homepage. Providing log in is successful, I then want to be able to track which student downloads which materials. I know how to deal with the login code but am not sure when I create the session variables to track the users. Is this done on the following page? Also do I need to use the global.asa file?

does the session on start event happen the minute the student arrives at the homepage or can I tell it to start once the students have logged in? any advice will be gladly received.

View Replies View Related

Session Tracking

I am developing an intranet site for my customer and i have faced a problem with session tracking. Many files added as include files and i found me unable to track session between two pages. I tried it with applying many logics but it failed.

There might be some sily mistake happaning by me but i can't track it. Give me idea about this. Is session variable does not work in include files?

View Replies View Related

Tracking Where A User Is Going

Is it possible to track where a user is going from a page? My goal is to be able to tell if a user is going to a new page inside my domain vs them going to an outside link - and have an alert box appear if they are going to an outside domain name.

I currently have a bit of JavaScript that I add to all the links within my page that when click alert box is avoided, but if they go to a link without that code (via Address Bar in the browser, back button, and refresh button) they get a alert box.

View Replies View Related

Session Tracking

I'm designing an online shopping cart using ASP. I want the flexibility of session tracking by using URL rewriting but I don't know how I would go about this.

I'd like to know how I would go about storing and retrieving session data (i.e. product items + their quantities) using URL rewriting? Code:

View Replies View Related

Tracking Incoming Emails

I wonder how I would go about an email tracker using ASP. I need this for the database to capture all unsubscribe requests. For instance, someone emails "unsubscribe@domain" I should be able to catch that email, get who emailed it and record that to my unsubscribe table. Also I am using a a commercial mail server (ability mail server) and not the virtual smtp server which comes along with IIS.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved