Forum Moderators: coopster
I have recently decided to set up an intranet for my own use only. I have a webserver using apache and also have php installed. What i have done so far is i use a basic authentication, simply asking for username and password before entering to the intranet homepage. Now what i'd like to do is to be able to retrieve whoever enter the site and be able to show it on the intranet homepage. In another word, i'd like a welcome message on the homepage, something like Welcome, Samuel... (a simple message like that).
What do i need to do to be able to get that working using php script?
Thank you in advance and look forward to hearing from you.
Thanks to both Tomda and Lobo235 for your reply.
Yes, i'm more interested in using the session than array. However, as i am still learning about PHP script, I think i can find some lesson about using session. Apart from that, i need to ask about the authentication. When a user types in his/her username and password in the authentication form, i was wondering how i could get the value of the username. In another word, how do i know what username the user has typed in so that i can register it in the session. I am sure there must be a way of finding it out. I searched for it in the apache webpage but could not find it.
I was wondering if you could give me some ideas if you could help me with.
Thank you in advance and look forward to hearing from you