LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Newbie needs help (https://www.linuxquestions.org/questions/programming-9/newbie-needs-help-262640/)

spud 12-04-2004 06:10 PM

Newbie needs help
 
Hi
I am using Apache with .htaccess authentication.

Can anyone give me any advice how to show the users name on the web page they are viewing...
ie Hello **** you are currently logged in
...

Thanks

Spud

sutley 12-04-2004 07:52 PM

session variable
 
I need to do some looking around for it, but I'm sure the username is saved in a session variable. If so, you might be able to access that and use it.

Found this:
http://forums.devshed.com/archive/t-62794

vharishankar 12-05-2004 09:16 AM

Re: Newbie needs help
 
Quote:

Originally posted by spud
Hi
I am using Apache with .htaccess authentication.

Can anyone give me any advice how to show the users name on the web page they are viewing...
ie Hello **** you are currently logged in
...

Thanks

Spud

It depends on what server side scripting language you are using. Session variables are generally stored in cookies on the user machine. Your server side scripting language should support cookie creation or storing session IDs.

PHP is fairly good at doing things like cookies and session-handling and it's very easy to learn too.


All times are GMT -5. The time now is 03:02 AM.