After login the user, it redirect to Login successs page. That page i got the session(userid). But i click any other links or type any other url(same site), the session will distroyed. I also check it with normal $_SESSION[]; a开发者_开发问答s well as $this->getUser()->setAttribute( ) ; method. I am new in symfony. Please help me. Thanks in advance.
Did you check if your cookies are enabled in your browser ?
精彩评论