Check User Status Login

Discussion in 'PHP' started by lost, Oct 24, 2005.

  1. #1
    I have a page where the user logs in as either admin or normal user.
    Once entered, the user can perform certain functions. One of the functions is to be able to modify an item, however only admin users can modify. how do i check to see if that person is admin or not without making them relogin??
     
    lost, Oct 24, 2005 IP
  2. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #2
    You could store the required information in a session, something like
    
    $adminMode  = 1;
    session_register("adminMode");
    
    PHP:
     
    dct, Oct 24, 2005 IP
  3. lost

    lost Peon

    Messages:
    144
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Perfect, thanks.
     
    lost, Oct 24, 2005 IP