Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Check User Satus

This is a discussion on Check User Satus within the PHP forums, part of the Programming Talk category; Hi Friends, How i will check that user is, logged in or not. i want to make it a function ...

  1. #1
    srinivas babu is offline Junior Member Array
    Join Date
    Feb 2006
    Answers
    11

    Check User Satus

    Hi Friends,

    How i will check that user is, logged in or not. i want to make it a function and i want to use in each page and after login i want to go in current page.any one please help me.

    thanks in advance
    srinivas


  2. #2
    Quozty is offline Junior Member Array
    Join Date
    Dec 2006
    Answers
    26
    you need to do something like

    @start_session();

    function login();
    {
    $_SESSION['loggedinname'] = "Quozty";

    }


    main page

    if (isset($_SESSION['username'])
    {
    echo" logged in";
    }


Latest Article

Network Security Risk Assessment and Measurement

Read More...