Jump to content

Recommended Posts

This may not be able to be done in just HTML, if not please point me in the right direction. I need to make a simple login on a website. It will allow some clients to view some special pages.

 

The ideal way is to be able to login at any time on any page, and of-course those that don't login won't be able to see the pages that would be protected.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/115894-customer-login/
Share on other sites

This may not be able to be done in just HTML, if not please point me in the right direction. I need to make a simple login on a website. It will allow some clients to view some special pages.

 

The ideal way is to be able to login at any time on any page, and of-course those that don't login won't be able to see the pages that would be protected.

 

Thanks.

 

You'll need a server-side script to process the login info and check to see if the user is logged on while they navigate from page to page.  You've come to the right place, since PHP can do exactly what you're looking for.

Link to comment
https://forums.phpfreaks.com/topic/115894-customer-login/#findComment-595927
Share on other sites

I think that considering that he/she may not know any PHP, and possibly MySQL (dependant on whether you will suggest database-driven logins, or simple sessions) that .htaccess may be the best bet for now.

 

I don't know whether or not .htaccess is limited to Apache servers, so if they are using MS servers I'm useless.

 

Hope that helps...

Link to comment
https://forums.phpfreaks.com/topic/115894-customer-login/#findComment-596290
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.