vijay1440 Posted March 13, 2006 Share Posted March 13, 2006 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 More sharing options...
reportingsjr Posted April 11, 2006 Share Posted April 11, 2006 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 More sharing options...
Guest vasu_jan31 Posted April 24, 2006 Share Posted April 24, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now