Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th Apr 2010, 03:41 AM   #1
HyperActive Warrior
 
Join Date: 2009
Posts: 163
Thanks: 9
Thanked 8 Times in 5 Posts
Default
Setting Cookies With Wordpress
Share on: 
fb share twitter share gplus share more share

I need to be able to set cookies on specific pages. And redirects based on those cookies on other pages.

Does anyone know of a plugin that can do this?

Or does anyone have any other solutions?

Is there a way to put PHP code in the head of a page without having to edit the page template?


Thanks
Mirnova is offline  
Unread 24th Apr 2010, 03:54 AM   #2
Scottish Warrior
War Room Member
 
Join Date: 2010
Location: UK
Posts: 120
Thanks: 12
Thanked 20 Times in 15 Posts
Default
Re: Setting Cookies With Wordpress
Share on: 
fb share twitter share gplus share more share

There are various ways to do this. The way I do this would be to set the link up on the first page to point to another page within your site. The code for the second page would be as follows

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="XHTML namespace">
<head>
<meta http-equiv="Refresh" content="1; URL=http://youraffiliatelink" />
<title>place the name of the product here</title>
</head>
</html>
davidsbain is offline  
Unread 24th Apr 2010, 11:20 AM   #3
HyperActive Warrior
 
Join Date: 2009
Posts: 163
Thanks: 9
Thanked 8 Times in 5 Posts
Default
Re: Setting Cookies With Wordpress
Share on: 
fb share twitter share gplus share more share

The problem is I'm working in Wordpress. I don't have direct access to the head section (unless I make a template for each page I need to set a cookie, and that just isn't practical).
Mirnova is offline  
Closed Thread


Bookmarks

Tags
cookies, setting, wordpress


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 02:13 PM.