Display content only on first visit, after 2 hours expires display it again

Completed Posted Apr 30, 2014 Paid on delivery
Completed Paid on delivery

I have three parts of code (content) on my WordPress website included into [url removed, login to view] file.

One code is included for page #53, one code for page #51 and one code for all other pages.

This is how I made it:

<?php if(is_page() && !is_page(array('51', '53'))): ?>

FIRST CODE

<?php endif; ?>

<?php if(is_page('51')): ?>

SECOND CODE

<?php endif; ?>

<?php if(is_page('51')): ?>

THIRD CODE

<?php endif; ?>

Now I need to display first content (code) to visitors only on their first visit. After that they shouldn't be able to see the same content for the next two hours. After two hours they can see it again.

I think that can be done with PHP session and cookies.

For someone who knows PHP this is one working hour.

I will pay you 10$ if you can do it till friday 02.05.2014.

HTML PHP WordPress

Project ID: #5879172

About the project

11 proposals Remote project Active May 2, 2014

Awarded to:

codestyle143

It can be done using session if u are using LOGIN system , or cookies if you are using guest system , feel free to discuss more about it , can get it done right now regards Pradeep

$15 USD in 1 day
(3 Reviews)
2.4

11 freelancers are bidding on average $37 for this job

lightcresent

Can do it for $20, delivery today itself............................................................................... Thanks

$24 USD in 0 days
(587 Reviews)
9.1
wildlily980

一个有效的提议尚未被提供

$50 USD in 1 day
(45 Reviews)
6.3
dungnguyen2607

Hello. I'm interested your project and ready to start. Thank you! .

$84 USD in 2 days
(49 Reviews)
5.7
egpc

Hi, as an expert wordpress developer and professional freelancer I would gladly work on your project. I am available to start immediately. Fast and reliable.

$61 USD in 1 day
(12 Reviews)
4.7
akaalmedia

A proposal has not yet been provided

$20 USD in 1 day
(0 Reviews)
0.0
shiva1977

A proposal has not yet been provided

$25 USD in 1 day
(0 Reviews)
0.0
VnBestSolutions

Dear Sir, We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! More

$74 USD in 1 day
(0 Reviews)
0.0
milliard

Hello, We can do this work Please provide url to check Waiting for your positive reply Regards, Twinkle

$14 USD in 1 day
(0 Reviews)
0.0