Jump to content

[SOLVED] HELP. need php cookie code


aminnuto

Recommended Posts

I have a file (in an include file) that I want to put on each webpage on my site.  It loads a javascript hover window.

 

BUT, I only want it to show up on the first page that a person sees when they come to my site (not necessarily the home page).  Once they see the box, I dont want them to see it again as they navigate to through my site, but i want to make sure they see it at least once when they come to my site so i want to put it on each page.  That way, when a search engine sends them to one page on my site, they see it but wont see it on every page they go to after that.

 

I need code (i'm guessing a session cookie) that will print my include file if the session has not been set.  Once its been set, do nothing.

 

Does anyone know how I can do this?

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.