doushi1974 2019-07-19 17:58
浏览 467

无法通过登录Facebook传递cookie

So... basically here is the issue:

-1 I will send a user to a log-in page with a get request something like:

www.example.it/login.php?ref_link=12345

So, in the login page I've 2 type of log in a) Normal one: email and password where the user inputs his credentials b) Facebook Login with the normal button "login with facebook"

I store the ref_link in a cookie with this simple command

setcookie('ref_link', $ref_link_content, time() + (43200 * 1), "/");

So basically here is the issue that I'm facing

When the user login in the "normal" way there's no issues regarding maintaining the cookie set. But when the user logs in with facebook, well, that's the issue, the cookie seems to unset itself.

There's someway to let the cookie pass through the facebook login?

Let me know!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 overleaf中论文编辑,报错`pages' is a missing field, not a string, for entry 4
    • ¥15 vhdl+MODELSIM
    • ¥20 simulink中怎么使用solve函数?
    • ¥30 dspbuilder中使用signalcompiler时报错Error during compilation: Fitter failed,求解决办法
    • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
    • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
    • ¥15 知识蒸馏实战博客问题
    • ¥15 用PLC设计纸袋糊底机送料系统
    • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
    • ¥15 用C语言输入方程怎么