PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    Session.php

    Share
    avatar
    mbrad

    Number of posts : 42
    Registration date : 2009-02-19

    Session.php

    Post  mbrad on Fri Apr 09, 2010 2:02 pm

    Thanks for taking the time to read my question.

    I would like to make my own session.php page. I figured that it would be smart to use the current session.php page as an example.

    What part do I need to be able to just create session variables?

    ie:
    <?php
    Code:
    $_SESSION['test'] = "Happy";
    echo "I am " . $_SESSION['test'];

    Code:

    <?php
    class Session
    {
    function startSession(){
        session_start();

    }
    };
    $session = new Session;
    ?>

    Is that all I need?
    avatar
    mbrad

    Number of posts : 42
    Registration date : 2009-02-19

    Re: Session.php

    Post  mbrad on Fri Apr 09, 2010 5:41 pm

    I got it. Can't type.

    Thanks,

    Brad

      Current date/time is Tue Sep 19, 2017 9:29 am