Message |
tim@hoop.co.uk writes: > I have never really understood how apache user authentication works, but I > assume that it is similar to the way we handle it (valid password -> start a > session so that users don't have to log in to every page). > > How is this session supported, and can we 'get at it'? It's part of HTTP. See http://info.internet.isi.edu/in-notes/rfc/files/rfc2068.txt section 11.1 "Basic authentication scheme". I can't on the face of it see any reason why we shouldn't leverage it. > The reason for asking, is that wap phones appear not to support cookies > themselves, but rely on gateways (and so i don't think we can rely on this): > > http://wap.colorline.no/wap-faq/?format=html&pair=04.007 Hmm, it all rather depends if the gateways do proxy WAP-HTTP sessioning. > , but the phones do support Basic Authentication: > > http://wap.colorline.no/wap-faq/?format=html&pair=09.001 > > for our billing purposes we need to get at the loginid, does this come back > on a HTTP request? Yes, it's HttpServletRequest.getRemoteUser(). I don't see why we can't use HttpServletResponse.setHeader() to implement a password challenge, either. Will look into.
|