All;
I am writing some CGI/web pages to enhance functionality in the user interface. Its pretty slick to be able to add/enhance features by using the menu/link manager and still retain the same look and feel throughout. My question is this. Whats the easiest way to determine which user is logged in? It does not appear to be written in the Astdb, which might be a good place to put it in the future (hint, hint). Any insight at all would be greatly appreciated.
Thanks
FSD
Primarily I'm writing for the user portal
Erik;
Right now I am writing for the user portal. Things like speed-dial, an enhanced blacklist, dnd/whitelist, etc. In general, I'd imagine that Webmin has got to track this somehow. Also, shouldn't it be possible for multiple users to be logged in? That does not seem to be possible.
Thanks
Frank
No, different users logged in
No, I mean different users logged in. Say user 200 logs into the user portal, and then user 201 logs in. As soon as 201 logs in, it essentially clobbers the session for 200. That never made sense to me. Perhaps it has something to do with Webmin.
im not sure i have observed
im not sure i have observed that. I'm going to try and re-create that. What should user 200 expect to observe when session 201 logs in? I am assuming you dont mean from the same web browser in another window/tab.
Uhmmm, don't I feel like a jerk
>I am assuming you don't mean from the same web browser in another window/tab.
Don't I feel like a jerk. Don't make assumptions when dealing with stupid people like me.
I've shot my self in the
I've shot my self in the foot so many times with that one I walk with a limp!
I found it
The solution to the original problem was way too simple. To find the identity of the logged in user, it was as simple as $ENV{'REMOTE_USER'}. It's CGI 101.
FSD
logged in as in an agent? or logged into their user portal?