Home  >  Article  >  Backend Development  >  Laravel's Session::set()Session::get() is only valid for the current page?

Laravel's Session::set()Session::get() is only valid for the current page?

WBOY
WBOYOriginal
2016-08-26 10:12:53953browse

Session::set('name','xiaoming') should be shared with other pages, but I tried Session::get('name') on other pages and could not get 'xiaoming'. How is this going?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn