Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Show If User Logged In - PHP

New Here ,
Jun 05, 2006 Jun 05, 2006
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.
TOPICS
Server side applications
212
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 05, 2006 Jun 05, 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.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 05, 2006 Jun 05, 2006
LATEST
thnx i will try that.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines