Hello.

What i am trying to do on my website is to have a message box that apprears when a user logs into my website. I alctually have this working now, i have a little close icon, and when this is clicked the message box vanishes. My problem is when the page is refreshed the box comes back .... but i dont want it to. Idealy i want it to work similar to a php session .... that for the time the user has the browser window open or they are logged into my site ... if they have closed the message box ... it does NOT return. When the user next logs into the site the message will re-appear.

Here is a pic of what i have right now :-



And here is my code so far

Code:
<script type="text/javascript">
<!--
function ShowHide(id) {
obj = document.getElementsByTagName("ul");
if (obj[id].style.visibility == 'hidden'){
obj[id].style.visibility = 'visible';
obj[id].style.height = 'auto';
}
else {
obj[id].style.visibility = 'hidden';
obj[id].style.display = 'none';
}
}
//-->
</script>
Thats the javascript that i use, and here is my message box code :

PHP Code:

<?php

echo '<ul id="lay1" class="Notice"><li>';
        
echo 
'Welcome, new to this website ? why not head over to our <a href="/Forums/index.php">Forums</a> and introduce yourself.';
        
        
echo 
'';?><span class="rightnotice"><a href="javascript:ShowHide('lay1')" class="NoticeRemove">&nbsp;</a><?php echo '</span></li></ul>';

}
         
?>
Is there anyway that once the box is clicked i can register a php session that i can check if its being set or not .. if it has then the box will not show .. but if the session is not set the box will show ??

I hope i was clear enough on this

Thanks in advance
Chris