Quantcast
Viewing all articles
Browse latest Browse all 107

How to display a DIV or not, based on whether a logging session cookie exists or not?

Hi everyone

 

I have created a logging system for a simple CMS using Dreamweaver server behaviours.

 

My problem :

When logged in, I would like to show on my pages a DIV saying something like "You are logged in". If not logged in, I would like a different DIV with this text saying "Please log in"

 

I have simplified the problem as much as I could. Basically, I would like to show something or to hide it and show another thing based on whether the logging session exists or not. Would someone have a simple answer to this problem?

 

Much obliged, W


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>