php and htaccess
Right now I use htaccess to password protect most of my website. However, I use cookies to display user specific content. To make the cookies, the user has to fill in their id and password on an online form. Is there a way to set a cookie based on apache .htaccess logins? I think this may refer to sessions but I haven't learned about that yet. I've looked through a few books and googled this question but I havent had any luck. Is there an easy script that will let me set a cookie with php to store the htaccess login info? And is there anyway to bypass htaccess protection if the cookie is stored?
In short, is there a way to get php and htaccess to work together, and if so how?
|