this is my first time on these forums and so I just wanted to say hi to all.
Help!
first of all, I'm a noob...
The problem is pretty simple, like I said I'm a noob...
So my problem is a login script. What i'm trying to do with it is make a show_login.html or .php and when you submit it it goes over to the back end script do_authuser.php and it takes it and checks if the input username and password is correct and if so it authorizes the user and starts a session i guess so that i can have superglobals $_SESSION[username] and $_SESSION[password] equal the username input and the password so that it's displayed up at the right of the page saying "Hello! SESSION[username]" example "Hello! DudeManDude".
I got all the script done most of it just wondering something.
What does the session_start function do? I think it starts a session and then you can make these variables $_SESSION[] but are thoughs super super where they work everywhere in the whole website?
What I basicly need is the ability to create a super global variable that has the value of the username when you log in and i also need the code that checks if the user has logged in.
These are my questions if you can understand what i'm asking.
Please help me all is appreciated.
Thanks for reading and thanks for your time.