refreshing on logon?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

not the include only the login code, the block where you check wether the credentials are correct and (if) mark the session as logged in
  • login/password supplied?
    • valid login?
      • set session-data
  • session:valid user?
    • show user menu
  • session:admin?
    • show admin menu
Just leave the admin include code where it is and put the login code before it.
User avatar
irealms
Forum Contributor
Posts: 215
Joined: Mon Apr 28, 2003 7:10 am
Location: Leeds

ok )

Post by irealms »

thanks i'll try it once my server is back up :cry:
Post Reply