FreshmenProgrammer
Programmer
Thanks in advance for helping me with my question. I just have a question about sessions. I log in my app login page then I set an id in the session eg.
So it's set in the session (i comfirmed this by pulling it out of the session in the same controller and printing). Now I come into the same app from a link in an email about 30 seconds after I log in. If Id is null I want to be sent to the app login page else just sent right into the app But for some reason when I come into the app from an email link i get a null value for Id when I just set it in the login controller. Anyone know why. Thanks?
Code:
request.getSession().setAttribute("Id", Id);
So it's set in the session (i comfirmed this by pulling it out of the session in the same controller and printing). Now I come into the same app from a link in an email about 30 seconds after I log in. If Id is null I want to be sent to the app login page else just sent right into the app But for some reason when I come into the app from an email link i get a null value for Id when I just set it in the login controller. Anyone know why. Thanks?