Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 07-02-2009, 10:41 AM   #1
Warrior Member
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Successful Opt-In Page Redirect on Subsequent Visits

Hello,

I was wondering if anyone had a script or know where one is that can do the following :

Visitor A comes to index.html which is Opt-In page.

If Visitor A opts-in and goes to Page B.

On Next visit, if Visitor A has been to Page B on a previous visit (can only get there by opting in), then he is direct to Page B, or Page C, etc.

He/She does not see Page A again unless he/she has NEVER opted in (i.e. Seen Page B)

If he/she NEVER opts in - they will always see Page A until they do.

Any help is greatly appreciated.

Thanks,

Mark
DirtProfessor is offline   Reply With Quote
Old 07-02-2009, 10:16 PM   #2
Senior Warrior Member
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 1,025
Thanks: 120
Thanked 158 Times in 115 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: Successful Opt-In Page Redirect on Subsequent Visits

The most reasonable way to accomplish this is to drop a cookie on the user's computer when they hit page B. Then when anyone comes to page A, before you display page A you look for the cookie. If it's there, you redirect them to page B or C before they can ever see page A.

It's not going to be 100% reliable since users can delete or disallow cookies, but it's the best approach.

I don't know of a packaged script to accomplish this, but any experienced web programmer (including me) could do it for you.

Steve

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline   Reply With Quote
Old 07-02-2009, 10:26 PM   #3
Warrior Member
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Successful Opt-In Page Redirect on Subsequent Visits

Steve,

Thank you for your reply, and you are right - the cookie is not 100% reliable. However, if 1 out of 100 people have to opt-in twice, it is successful in my book.

FYI - the thread below has solved the riddle for me :

warriorforum.com/website-design/99404-cookie-question(dot)html

Cant post links until I have posted 20 times for some reason.

Thanks for your help and I will keep you in mind for future programming needs.

Take Care,

Mark
DirtProfessor is offline   Reply With Quote
Old 07-02-2009, 11:53 PM   #4
Senior Warrior Member
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 1,025
Thanks: 120
Thanked 158 Times in 115 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: Successful Opt-In Page Redirect on Subsequent Visits

Thanks, Mark. I'm glad you found a good solution.

Steve

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline   Reply With Quote
Old 07-10-2009, 02:33 AM   #5
Senior Warrior Member
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 1,025
Thanks: 120
Thanked 158 Times in 115 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: Successful Opt-In Page Redirect on Subsequent Visits

@Nick818d: Yes, there is. It can be done in Javascript, PHP, or a combination of the two.

But why in the world did you post your question as a reply in this thread? You ought to start a new thread. What you did is known as thread hijacking, and it's considered very rude.

Steve

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
optin, page, redirect, script, subsequent, successful, visits

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:56 PM.