Skip to main content
Participant
June 5, 2006
Question

Show If User Logged In - PHP

  • June 5, 2006
  • 1 reply
  • 213 views
hi guys, new to this forum and not a very experienced php programmer so please be patient with me

I have a "user control panel" which I only want to show to users if they are logged in.

I cant see in the "server behaviours" part of DW8 a ready made "show if.." that will do this?
I maybe being stupid / blind so apologis if i have missed it.

any ideas guys?

thnks in advance.
This topic has been closed for replies.

1 reply

Inspiring
June 5, 2006
I think what you're looking for can be foudn here:
Server Behaviors -> User Authentication -> Restrict Access to Page

If not, just use

<?php
if ($_SESSION("MM_Username")) {
?>
Put your control panel HTML here
<?php } ?>


"tedrodgers" <webforumsuser@macromedia.com> wrote in message
news:e61n1s$s2m$1@forums.macromedia.com...
> hi guys, new to this forum and not a very experienced php programmer so
> please
> be patient with me
>
> I have a "user control panel" which I only want to show to users if they
> are
> logged in.
>
> I cant see in the "server behaviours" part of DW8 a ready made "show if.."
> that will do this?
> I maybe being stupid / blind so apologis if i have missed it.
>
> any ideas guys?
>
> thnks in advance.
>


Participant
June 5, 2006
thnx i will try that.