Help - How To Require Cookies On My Own Site?

This is a discussion on "Help - How To Require Cookies On My Own Site?" within the Starting Out section. This forum, and the thread "Help - How To Require Cookies On My Own Site? are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 16th, 2007, 18:47
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Help - How To Require Cookies On My Own Site?

Hi

I am a completely self-taught web designer - so technically - im verrrry "learn as i go " I have an affiliate mall for girl stuff - www.PrettyPrincess.US. I am currently redesigning/upgrading it. The homepage is already in the new design. I am working into the "Dress Up" section with the new design as well. I am majorly cleaning up my html, and now getting the new structure to validate throughout the whole site, as well as creating a more professional visual design.

...so here is my question, being that my site is an affiliate mall, the purpose is to make commission off of the sales i refer through links that track. 99% of the links track based on a cookie system only. This, as most people know, can be as poor as 70% accurate due to cookie blocking software, browsers deleting cookies, or the shopper not having their cookies enabled at all. I would like to lower my loss rate by implementing some way for my own site to require cookies. That way, before a shopper even clicks on any links, my site would have a system that requires them to enable their cookies - as in it would send them to a default "please enable cookies" page until they enabled them. This way, i could be sure that cookies are collected as the customer goes forward into the sites i promote.

...since i am self-taught and very amateur, i have no clue how to do this. I know that it is more than likely a javascript code, and probably a CSS process? I am also wondering, is there a way to do this by just dropping a script onto the entire domain so that it applies to every page included in the domain and its folders? ....or, is the only way to do this sort of thing by inserting a code in every single page?

...i have just begun the redesign, and am figuring i should check into it before i design the entire site and have to go back through each page ( the site is over 200 pages )...

if anyone has any advice on this it would be awesome ...and i also should mention that the easiest way to this sort of thing would be helpful lol - i do most of my design without actually understanding the technical language...oh, and i design in dreamweaver 8, if that helps...

once again...any help would be awesome!

thannnnk you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 18th, 2007, 12:59
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

hmmm....was i descriptive enough? ...or did that not make any sense...

i guess, to sum up what i was asking above... i am looking for a script that prompts my browsers to enable their cookies(if they have not already done so)

...one that sends them to a "bounce page" explaining the need to enable cookies...until they enable them, then they are free to browse normal...

i am wondering if it is something i can put at the top of my domain, and it will filter through every page, or is it something i need to enter page by page?

and is java the only way to do this?

anyone?...

Last edited by PrettyPrincess19; Dec 18th, 2007 at 13:09.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 18th, 2007, 13:39
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,715
Blog Entries: 14
Thanks: 4
Thanked 33 Times in 31 Posts
Re: Help - How To Require Cookies On My Own Site?

there are plenty of scripts out there that will help you do what you want.

this is probably clos e to what you want, but change the line

alert("COOKIES need to be enabled!");

to something like

location.replace('http://www.example.com/enablecookies.html');

good luck
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)

Last edited by welshstew; Dec 18th, 2007 at 13:46.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 18th, 2007, 13:42
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

Quote:
Originally Posted by PrettyPrincess19 View Post
Hi I know that it is more than likely a javascript code, and probably a CSS process?
CSS has nothing to do with this sort of thing. Think of CSS like the paint on your walls or the furniture in your house

You are talking about electricity and plumbing here

I would think the only way to achieve this would be by using PHP.

However, I think the cookie system for this is a bit weird!?? I would of thought that something like adding a referrer ID to the url would be much wiser? Maybe one of the PHP guys can enlighten us

I'll move this to the PHP section for you ... you might get more help in there

EDIT! Ah ... Stew beat me to it. I'll leave it here for now then.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 18th, 2007, 13:48
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

ooh sorry let me read that first...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 18th, 2007, 13:52
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

ohh...no, im not talking about the actual links...they are already built on a referrer id system...what im asking about is just a way to get the browser to be prompted to enable their cookies before they click on my referrer links...that way i can be sure that they are collecting the referral cookies as they proceed forward...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 18th, 2007, 13:52
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

hmmm....yeah, i've kind of already gotten that far on my own, that is the google search i have already done :\ ...i have been searching through those, and i do not have enough technical background to be able to identify which script is going to do what i want :\

....i guess my question is looking for a more specific answer...

...like which specific script am i needing for what i want to do? I am to nervous to just begin trying random scripts...im afraid ill start jumbling my site structure that i have been working so hard to clean up...

...is java the most efficient route(maybe the only route)?

....can i put the script at the top of my domain and have it filter down? - or do i need to manually insert the script into each page

....and being that my site is htm 4.01 transitional, will my site still validate with script i will be implementing?

thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 18th, 2007, 13:53
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,715
Blog Entries: 14
Thanks: 4
Thanked 33 Times in 31 Posts
Re: Help - How To Require Cookies On My Own Site?

Quote:
Originally Posted by karinne View Post

However, I think the cookie system for this is a bit weird!?? I would of thought that something like adding a referrer ID to the url would be much wiser?
this seems a more logical way of tracking things to me, rather than cookie based.

Ask your affiliate if you are able to do this, it would be much easier.
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 18th, 2007, 13:54
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

ok stew, sorry again, let me follow your second link...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Dec 18th, 2007, 13:54
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,715
Blog Entries: 14
Thanks: 4
Thanked 33 Times in 31 Posts
Re: Help - How To Require Cookies On My Own Site?

Quote:
Originally Posted by welshstew View Post
this is probably clos e to what you want, but change the line

alert("COOKIES need to be enabled!");

to something like

location.replace('http://www.example.com/enablecookies.html');

good luck
try the above, sorry was editing and got called away.
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Dec 18th, 2007, 14:03
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

thank you...yeah, i think that is what i am looking for...i only wish it wasn't greek to me :\

...i guess i could just try testing the code?....do i need the entire code? and will i be creating my "bounce" page the same why i do normal pages? and then inserting that url somewhere in the code?


i apologize for the zillion questions, and i do appreciate your help :\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Dec 18th, 2007, 23:25
Junior Member
Join Date: Apr 2007
Location: California
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - How To Require Cookies On My Own Site?

hmmm....i truly appreciate the suggestion of the code...here's the problem - i don't understand it at all :\ - i don't know which parts i am supposed to use...and it mentions something about creating a cookie to test against? i have no clue how to go about this :\ i have not worked with java, and i don't know what parts of this are actual code and which are the explanation of the code?

once again...im very new to web design...so can anyone explain how to do this process?

thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
cookies in PHP marquey PHP Forum 4 May 31st, 2007 17:17
how can I ensure that require form fields are filled?? uddin PHP Forum 5 Apr 16th, 2007 13:54
My buttons now require a doubleclick?? kcoldani Starting Out 13 Apr 4th, 2007 21:03
Free Submission - Require No reciprocal Link Shaw Link Building and Link Sales 0 Nov 17th, 2005 08:11


All times are GMT. The time now is 03:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42