Welcome Guest, Not a member yet? Register   Sign In
ci cookies to show add 1 hr interval
#1
Star 

hi,
i want to show an add as popup when a guest/user browse my site. add must be displyed once an hour. is there any way to solve this using CI any method.
i am a new dev on this platform.

thanks in advance.
Reply
#2

Take a look at docs. There is cookie helper. Show ad to user who has no cookie, and set cookie expiration for 1 hour when they view the ad. However, CodeIgniter will not be able to make the ad "pop up" unless you use a nasty, blockable popup window using the javascript class. To do all of this you would be better off using JQuery and the JQueryCookie JS which will set and read the cookie using javascript on the client side!
Reply
#3

hi alroker,
gr8... thanks for the suggestion.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB