themice Posted June 22, 2012 Share Posted June 22, 2012 New to PHP - just learning so bear with me. I have a third party PHP application that has an Admin section / page. What I need is a way to have the link (to that admin log in page) contain both a username and password so upon clicking it, the user will be automatically logged in. Wasn't sure if there was some "standard" way of doing this in PHP. Let me know what other info you need. Appreciate any help. Thx. Quote Link to comment https://forums.phpfreaks.com/topic/264616-passing-log-in-credentials-using-a-link/ Share on other sites More sharing options...
scootstah Posted June 22, 2012 Share Posted June 22, 2012 Wasn't sure if there was some "standard" way of doing this in PHP Yeah. The standard way is to not do that. What's wrong with a login form? Quote Link to comment https://forums.phpfreaks.com/topic/264616-passing-log-in-credentials-using-a-link/#findComment-1356154 Share on other sites More sharing options...
ManiacDan Posted June 22, 2012 Share Posted June 22, 2012 If you want anyone who clicks the link to be automatically logged in, why are you even password protecting the site? Do away with that entirely if you don't want it to be secure Also, not wanting your admin section to be secure is silly, I hope you realized that on your own during the first line. Quote Link to comment https://forums.phpfreaks.com/topic/264616-passing-log-in-credentials-using-a-link/#findComment-1356161 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.