I need to use a session to log in. I set the session in session and now let me know the same session on the backend Checking so successful login can be checked.
Frontend
$ session = & amp; JFactory :: getSession (); $ Session-> set ('username', 'ABC 123');
Backend
$ session = & amp; JFactory :: getSession (); Retention $ Session-> ('Username');
But this session is not displaying the value, plz helps me? If other solutions, you can give it too.
You can check whether the user is logged in or not in the jos_session table. Session data is not shared between frontend and backend (if you enter the frontend and backend with the same user, then you can see in the jos_session table, two different session IDs are for the same user )
Comments
Post a Comment