![]() |
Display Content only once per session
Hi
I would like display a special content (banner) only one time per session can someone help me with the code please <!-- Beginn Session code my content End Session Code --> thanks in advanced |
The easiest way would be to set a temporary cookie, and check this cookie. However, this requires PHP coding on your part. I'm sure I've posted a snippet somewhere though.
|
Here is a basic piece of PHP to do this.
Set the cookie... PHP Code:
PHP Code:
http://uk.php.net/manual/en/function.setcookie.php |
Inside vBulletin, the vbsetcookie() function should be used.
|
All times are GMT. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|