简体   繁体   English

在我的网站上为我的登录系统使用cURL验证用户身份?

[英]Authenticate users using cURL for my login system on my site?

Maybe I don't understand cURL, so I'll ask. 也许我听不懂cURL,所以我会问。 Any help is greatly appreciated. 任何帮助是极大的赞赏。 I am currently attempting to create a login system for my site. 我目前正在尝试为我的网站创建一个登录系统。 I am under the impression that using cURL is much more secure. 我的印象是使用cURL更安全。 So, I was wondering how i can restrict access and grant access to data depending on if the user is logged in like how you would with session variables such as: 因此,我想知道如何根据用户是否登录来限制访问权限和授予对数据的访问权限,就像使用会话变量一样:

if(isset($_SESSION['logged'])){ SHOW CERTAIN DATA } else {SHOW DIFFERENT DATA}

You are mistaken, cURL is not relevant to your problem. 您错了,cURL与您的问题无关。 Just go ahead and use sessions . 只是继续使用会议

cURL is a library to do HTTP requests, like a programmable "web browser" in itself. cURL是一个执行HTTP请求的库,就像它本身的可编程“ Web浏览器”一样。 It's useful for fetching external resources from other servers, but it's not relevant for an authentication system. 这对于从其他服务器获取外部资源很有用,但与身份验证系统无关。 cURL is not a web server, it's a web browser. cURL不是Web服务器,而是Web浏览器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM