War Room

Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 07-02-2009, 06:35 AM   #1
Warrior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cookie question

Hi,
I was wondering if there are any web design experts out there that can help me with a small problem, well... it might not even be that difficult, but it is if you dont know it.

Anyway...
I have a sales landing page for my business...

myinternetbusinessexplained dot com

which, once someone has opted into my mailing list using the aweber form, they are redirected to my welcome page....

myinternetbusinessexplained dot com/welcome.html

What i want to do is... if someone has already landed on my page and entered their details to subscribe to my mailing list...then the next time they visit, they are automatically redirected to my welcome page,instead of having to enter their details again.

I take it ive got to set up some sort of cookie and a redirect but ive no idea how to do it.

Can anyone out there point me in the right direction?
Much appreciated.

Thanks,
Alan
buckyuk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 08:38 AM   #2
Warrior Member
 
Join Date: Jun 2009
Location: India
Posts: 24
Thanks: 0
Thanked 4 Times in 4 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via AIM to CoderPundit Send a message via MSN to CoderPundit
Default Re: Cookie question

I think this is what you are looking for.

Javascript Cookie redirection. Free and Commercial Perl and Javascripts
CoderPundit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 09:05 AM   #3
Warrior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

Brilliant mate,
Thats exactly what ive been looking for.

Thanks a millions, i asked this question on digital point and some guy wanted to charge me $40 to do it, and wouldnt tell me how to do it myself.

I think warrior forum may just be my new favourite forum! :-)

Thanks again.
buckyuk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 09:22 AM   #4
Warrior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

Ok now ive got another question....

Say my site is ranking on page 1 of google for my keywords, And then i add this cookie redirect,
How does that effect the google spiders, will the always still see the original page, or does the cookie redirect them to the welcome page?

The reason im asking is because if they get redirected to the welcome page, then google will see it as a completely new site and my page will most probably drop from page 1 of google!?

Any ideas?
buckyuk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 09:40 AM   #5
Warrior Member
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

Alan,

Actually, I think the script that was shown to you by CoderPundit isnt exactly what you need.

That script will automatically send them to Page B on the second visit, even if they never opted in.

Example : If Visitor saw Page A (your opt-in) then redirect to Page B.

Whereas, this is more of what you are after - AND I AM TOO :

Example : IF Visitor is ON page A, but already saw Page B, then redirect to Page B (or C) - if Visitor has NEVER saw Page B then keep showing Page A.

I have been scouring the internet for this type of script.

The one that was shown here redirects whether or not they EVER opted in. Which, I guess would be ok in some cases - but you will NOT get the opt-in.

The solution example I showed would also take care of your Google spider concerns - since they NEVER opt-in anyway and would NEVER see Page B.

Please - someone help us with this.

Thanks,

MD
DirtProfessor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 10:40 AM   #6
Warrior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

yeah your 100% right....
Could you not do something like this, just off the top of my head..

Put the script on both pages, A and B,

Except make the cookie on page A expire straight away.
But call the cookie the same name.

This way the cookie would only get stored for say.. over 60 days if you have visited page B.

What do you think?
buckyuk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 10:53 AM   #7
Warrior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

ok so i tried my theory, but it just seems to go into a redirect loop, constantly redirecting to page B and it never actually loads fully.

Any ideas?
buckyuk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 11:01 AM   #8
Warrior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

OK, problem sorted....

On page A, set the cookie to -1 for the days as explained.

on page B, set it to 60 days...

But also remove this line...

go_to = "websitenamehere";

works a treat.

My only questions now is... back to the google thing.

Can the spiders follow javascript.
the reason i ask, is that my welcome page, page B is indexed
in google, so it must be linked to from another site,

should i worry about it or can i ignore it?

So my last questions is... will google get redirected by
this redirect?

Thanks
alan
buckyuk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009, 09:49 PM   #9
Warrior Member
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cookie question

Wow - That did the trick very well! Thanks.

As far as the Google issue is concerned - I have no idea now. If I had to guess I would say you would be ok - because BEFORE it redirects the page actually loads for a split second. Maybe that is enough time for Google to count that page as ok.

Just my guess. Thanks again!

Mark
DirtProfessor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
cookie, question

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 06:50 AM.