Jump to content

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
https://forums.phpfreaks.com/topic/38986-solved-help-need-php-cookie-code/
Share on other sites

let me clarify because I am also going to use this code to display other include files that are not popups...

 

 

I need code that will set a session cookie that will display an .inc file if the session cookie is not set.  If it is set, do nothing.

 

 

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.