[eluser]alvaroeesti[/eluser]
Hello,
After checking at the Model that username and password are correct I want to go to the Administration panel.
First, I dont know if I am "going the right way" because I am using a
Code:
header("Location: http://localhost/realestate/etc/");
I mean, it takes me alright, but I dont know if that is the way to do it, because
the second issue is that at the Admin Panel I need to have that thing of Welcome Username and the logout link, and it is that Username that I am sending from the Model.
I imagined I would do the session_start () at the Administration panel and then I would do $_SESSION('username') = $username;
any idea what the way to send the $username from the Model so that I can pick it up at the Admin panel?
thank you