duanmengmiezen8855 2018-09-30 16:18
浏览 89
已采纳

我怎么能在关于子域的laravel中修复这个错误

I use a test domain in laravel and one subdomain is in use. Everything works fine,

test.com and user.test.com

but, Login function does not work on test domain

I have verified that the session file is generated at stoage / sessions

when I done login, it does not cognize my session. The login function works well on localhost url. how i can fix that?

i'm done config like this below

config / session.php 
domain => ".test.com"

And if I set up like above, can I share login information between two domains?

  • 写回答

1条回答 默认 最新

  • donglu4633 2018-09-30 17:57
    关注

    Clear the cookies for the site and then try to log in again. Or If the issue still persists then try to change Session Cookie Name in config/session.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并—
  • ¥15 ARIMA模型时间序列预测用pathon解决
  • ¥15 孟德尔随机化怎样画共定位分析图
  • ¥18 模拟电路问题解答有偿速度
  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序,怎么查看客户esp32板子上程序及烧录地址
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)