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

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

报告相同问题?