Eli Fulkerson .com HomeProjectsJavascript-one-time-popups

One-time Popups with PHP & Javascript


This is a PHP snippet to generate a popup window one time per visitor. It uses a session variable to determine if the visitor has already received the popup. It isn't the most straightforward way of achieving this effect, at the time it was written I didn't want to fool with (in terms of debugging especially) a pure-javascript solution. Javascript is only used to launch the window itself.


onetimepopup.inc (plain text)

Download (zipped, with example files)