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

dynamic login [help]

New Here ,
Sep 04, 2006 Sep 04, 2006
hi everyone!

I'm using dw8+php and i can do a working login/logout/userdetails page...

My question is this:

how can i make disapear the login form and display the username and the signout link, after a successful login? I could use an alternative page, but i want the login information displayed in all pages of my portal....

Thank's
TOPICS
Server side applications
183
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
Guest
Sep 04, 2006 Sep 04, 2006
LATEST
if you are using a session to track the user try this:

<?php
if(!isset($_SESSION)){session_start();}
//set username to what ever you save the user as
if(isset($_SESSION['username'])){
echo "Current User: ".$_SESSION['username'];
//put logout link here
}else{
//show the log in form
}
?>
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