/    Sign up×
Community /Pin to ProfileBookmark

Accessing user id (apache Htpasswd)

hi

i am using apache htpasswd basic authentication password file. my web site is working well. when i give url in browser a dialogue box will appear for user id and password and in case of correct userid and password, home page of my web site opens. but problem is, i have more then one users and i want to get user id, who log in and I wants to print user id on home page at run time in java script because my web site is simple html web site. it is not form base authentication so how is possible to get user id. kindly help me .

thanks and regards,
Muhammad Akmal

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@miki1986Jun 21.2011 — hire me at 5$ per hour.

my skype id is baakdaa.
Copy linkTweet thisAlerts:
@KorJun 21.2011 — http://www.csuchico.edu/eapp/INTERNET/htaccess.html#Multiple

But you'd better use a Data Base (say MySQL) and a server-side language (say PHP) in order to register/login/logout, etc.
×

Success!

Help @m_akmal70_hotma spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...