Jump to content

WWW-Authentiate header in response


vijay1440

Recommended Posts

Hi fnds! I want to know how to get a prompt msg in the web pages (just the way many password protected sites do) for username and password. I read that if I set the response headers likeresponse.setHeader("WWW-Authenticate", "BASIC realm=\"executives\"");i will get the effect i need.But it is not working. So please tell me the way i can do that.Any advice is appriciated.Thanks,Vijay

Link to comment
Share on other sites

  • 5 weeks later...

Huh? I dont get what you want.. Do you mean like, you want it to check if the person is allowed to login(so they cant just type in the webpage and get to that page) so you need to be authenticated? If so use the PHP function sessions , you will need to read up on this more (check out google).

Link to comment
Share on other sites

  • 2 weeks later...
Guest vasu_jan31

I didn't get these following lines :response.setHeader("WWW-Authenticate", "BASIC realm=\"executives\"");i will get the effect i need.But it is not working. So please tell me the way i can do that.plz ...try to explain the problem in clear...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...