WordPress.org

Ready to get started?Download WordPress

Forums

Setting PHP cookies to not display content (1 post)

  1. ziyadb
    Member
    Posted 3 years ago #

    Hi everyone!

    I have set up a site at http://certstudy.org as you can see, there is a large text widget saying "Want lessons on other topics? Let us know!" I want to configure it as to when it is clicked once, it won't show up again for that visitor.

    So far I learned that to do that, php must set a cookie at the page which the widget links to. Then every other page will check if that cookie is set, if it is, they will not display that widget again. If it's not, they will.

    Unfortunately I am not familiar with php whatsoever, so your assistance would be greatly appreciated!

    Thank you!
    Ziyad B.

Topic Closed

This topic has been closed to new replies.

About this Topic