Which Login/Password access system...

User 2736027 Photo


Registered User
58 posts

I purchased a copy of WAM for testing purposes. It does exactly what it advertises, however, I am fumbling around to find the best way to use the application.

What I would really prefer, is a user Login access similar to what Coffee Cup has. That is, instead of a user seeing a pop-up Windows message indictaing this is a restricted site, etc, they would see a custom Login form, possibly with other relevant text included.

Second, I already have a MySql database with the user's profile, which includes their User Name/Password, along with other profile information. The database is dynamic, in that a user can update their profile at any time. I would like to be able to 'link' (for lack of a better word) to the database to do a Login match, if possible, rather than having to import all the users over to WAM. Not a big deal to do it once, but it would be less desirable from an ongoing maintenance perspective.

Which is why I asked the question: Which Login/Password access system does Coffee Cup use? This would be a similar 'look' that I am trying to replicate, but I don't know how CC handles the process behind the scene. Can you share how you go about this?

Thanks
User 103173 Photo


VP of Software Development
0 posts

Our system is completely custom. It uses PHP, MySQL, JavaScript and other magic. ;)

You can find a few of these types of systems here at https://www.google.com/search?q=php+mys … p;ie=UTF-8
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 10077 Photo


Senior Advisor
1,042 posts

You could use Web Form Builder to create a very nice looking login form. When the user submits the form, it creates a session that holds all the data submitted by the form. Using a little PHP, check the login credentials against your database. Unset the PHP session if the credentials are invalid.
See http://php.net/manual/en/function.session-unset.php

Each page then checks to see if a valid session is set. If not, it sends them back to login. If so, the page displays like normal.
How-To Instructions for Coffeecup Users (tutorials, examples, and downloads)
http://usconsumernet.net/help-for-coffe … -users.php

Personal & Specialized Help for Coffeecup Users
Email me at cchelp@uscni.org or call 865-687-7698
User 2736027 Photo


Registered User
58 posts

Thanks Brian and Scott for the replies.

I already own Web Form Builder, so that is what I plan to use form the Login screen. The form can then be part of a web page to make it look part of the overall website, which is a feature I was striving for. So, that covers one of my 'needs;.

I followed a couple of links Scott suggested, and I now have all the php stuff installed and working. Wasn't too hard, and actually works very well. So, Thanks for that.

Initially I was reluctant to use SESSION, as it requires each password-protected web page to have some additional code. I thought it might become unwieldy to go through every page of the Members section, but it probably is the best solution so far. I was hoping that SESSION could just 'protect' a complete Member subfolder, like WAM does, but apparently not. Win some, lose some!

Thanks again!
User 187934 Photo


Senior Advisor
18,749 posts
Online Now

You can protect a complete directory. Place an index file in the directory with the $_SESSION data on it.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2736027 Photo


Registered User
58 posts

Good to know, Eric!

I give that a try.

Thanks

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.