2018-09-30 16:18
浏览 89


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
    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

    点赞 评论