Setting and retrieving session data
- kevin.waterson@gmail.com
- Member | 81
So, my user registration and login works fine. (Thanks Jiri).
When a user logs in, I wish to set some session data related to the user.
I have been following the example on https://doc.nette.org/…ttp/sessions
So, in my user constructor, I set the session, and section variables..
Then in my startup() method, I start the session.
This is repeated in my blog constructor…
And similarly in the startup() method.
In my user::loginFormSucceeded() method, the session data is set.
However, the session data does not seem to be set in blog presenter.
Where am I going wrong here?
However, I am unable to seen
Last edited by kevin.waterson@gmail.com (2020-07-10 11:54)