- Chinna
- Chinna
-- Maximus Moothiringus
Preparing for SCJA!!
Finally figured out that giving <br/> splits the profile biography but not the signature
-- Maximus Moothiringus
Preparing for SCJA!!
Finally figured out that giving <br/> splits the profile biography but not the signature
To fix this problem experienced in logoutSampleJSP2, logoutSampleJSP3's login.jsp should contain—in addition to the username and password—a hidden field called lastLogon that is dynamically initialized with a long value. This long value is obtained by calling System.currentTimeMillis() and denotes the current number of milliseconds since January 1, 1970. When the form in login.jsp is submitted, loginAction.jsp first compares the value from this field against the lastLogon field's value in the User database table. Only when the lastLogon value from the form is greater than the value in the database will it be considered a valid login.
-- Maximus Moothiringus
Preparing for SCJA!!
Finally figured out that giving <br/> splits the profile biography but not the signature
Shailendra Mishra wrote:Hi,
1. When successfully login put the login name into session.
2. In each jsp page get the value from session if you got “!= null” value then Ok
other wise forward to session out page.
3. When ever click logout link disable session value.
It might help you out.
Tania Sen wrote:i am sort of new to database,i am using mysql...could you tell me what type of datatype to store the time,it is told to use hidden field with a 'long' value...
Tania Sen wrote:but i am just a bit confused about 'hidden field' ... So i guess i have to put this checking code in every page to be secure ?
Tania Sen wrote:i have one more silly question..
-- Maximus Moothiringus
Preparing for SCJA!!
Finally figured out that giving <br/> splits the profile biography but not the signature
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|