aunquarra Posted December 13, 2005 Share Posted December 13, 2005 This seems to have been posted in the wrong section. I apologize. I have reposted it under PHP Help. The original post is here: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]Hello all. This is my first post in this particular section, but I'm sure you guys will be as ever-helpful as the other folks have been, and for that, I thank you in advance. Basically, my question is simple: is there a way for my php script to convince apache that an http auth procedure has already taken place? I've built a session-based login system, passing a $_GET session_id() key around from page to page. It works pretty well, and after doing it on four separate sites now, I prefer it to using http auth. The main downside, though, is that with http auth, it's easy to see who is logged in by checking the apache logs (since the username is logged), and I can't do that with this system. So, I'd like to somehow use my html login page rather than the pop-up http auth window, still base the whole login scheme on the mysql/sessions system it's on now, but tell apache that the username is $_SESSION['username']. I've tried manually setting the $_SERVER['PHP_AUTH_USER'] var, etc., but of course, that information doesn't pass on to the next page, much less apache itself. It may not be possible, but if it is, I know someone here will know how to do it. Thanks so much![!--sizec--][/span][!--/sizec--] Quote Link to comment https://forums.phpfreaks.com/topic/3035-faking-http-auth/ Share on other sites More sharing options...
aunquarra Posted December 14, 2005 Author Share Posted December 14, 2005 Did I post this in the wrong section? Should this go under PHP Help? Quote Link to comment https://forums.phpfreaks.com/topic/3035-faking-http-auth/#findComment-10204 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.