Jump to content

Quick members area


Go to solution Solved by M.O.S. Studios,

Recommended Posts

Hey Everyone,

 

I own a business (unrelated to programming). To make my life easier I made some php apps that automate some of the paperwork I have to do. Does any one know a good framework that will allow me to put these behind a username and password?

ideally, it would be something really simple to use. I want to avoid having to learn all the intricacies of something like drupal.

In my mind, I picture a software that I install, put all my files in one directory, and those files now can only be accessed though this software .

 

any thoughts? 

Link to comment
https://forums.phpfreaks.com/topic/320266-quick-members-area/
Share on other sites

How simple and how user-friendly do you want it? You can configure your web server to do authentication with a simple list of usernames and passwords, but it's not a fancy solution: you have to manage the list yourself, and the authentication prompt is very plain.

The username is available to PHP, if you want to do something with it after the authentication happens.

Link to comment
https://forums.phpfreaks.com/topic/320266-quick-members-area/#findComment-1622790
Share on other sites

  • Solution
54 minutes ago, requinix said:

How simple and how user-friendly do you want it? You can configure your web server to do authentication with a simple list of usernames and passwords, but it's not a fancy solution: you have to manage the list yourself, and the authentication prompt is very plain.

The username is available to PHP, if you want to do something with it after the authentication happens.

Fancy isn't important as I am the only one using it.

 

However easy is ideal.

 

I was thinking of using htaccess, htpasswd, .htaccess. I have never used those before, but I think they will be pretty simple to set up.

 

My only concern is that I use Ajax to reference other pages, and I am worry that will interfere 

Link to comment
https://forums.phpfreaks.com/topic/320266-quick-members-area/#findComment-1622791
Share on other sites

19 minutes ago, requinix said:

htaccess/htpasswd stuff works as part of the HTTP protocol, much like cookies. Same-domain AJAX shouldn't know or care that it's happening.

Ah, so if I log in on one page, and make a Ajax call to another page; it should work?

 

Even if the link is an absolute address like https://myodomain/page.php opposed to page.php?

Link to comment
https://forums.phpfreaks.com/topic/320266-quick-members-area/#findComment-1622793
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.