I am facing the following serious problem and asked you to help me. I have already develop web application using Java Woodstock. And the session works fine in my project. I set session time out to 1 minute for trial and it works fine but if i increment system date by one or more date after the session expire(in my case one minute) the session actually stop working (simply allows to access any page with out login) and needs redeployment again. my back end is mysql and front end Java netbean 6.5.1 jsp(using Woodstock web application),
Is there anyone who fix my problem. I really thank you for your kindly help.
If I understand this right: you are running a server on your computer, and when you change the date on that computer to be one day later, your scheduler fails?
Yes, if your scheduler fails then that is a serious problem. But the way to fix that problem is this: Don't change the date on your computer while the server is running.
There shouldn't be any reason for the date on your computer to be anything other than today, or for the time to be anything other than now. All computers built for the last 30 years or so can keep track of the current date and time once you set it up, so there's no reason for you to be changing those things. If you find your computer doesn't keep track of the current date and time, then it is broken and needs to be repaired. You should not try to fix the server to work on a computer which is broken in that way.
Joined: Jun 03, 2011
I really thank you for your respond. But even though I do nothing for the system date; after a day(probably 8 hour) the session stops working. Look to check this I run my web application and login in one link then it asks me the user name and password and after I do so it allows me to enter in the required page and if I had no interaction with the application for 1 minutes(I set session time out is 1 minute) and tried to do something on that page after a minute it asks me to login again and that is really what I want and the system perform this well the problem is if I had no interaction with my application after I loged in some page for 8 hour and tried to do something on the opened page so far it doesn't ask me to login again. It losses session information and allows me to access any page in my application with out asking login information but they ware settled to ask login information. I am waiting for your kindly help. Thank you.
Joined: Jun 03, 2011
Dear Paul Calphum,
I thank you for your response. And I am glad to say the problem has been fixed. Look the case was after some long hour(in my case 8 hour) the DBMS(mysql) do allows connection from the application but the connection is not yet valid. And what I did is to check the validity of the conection(connection.isValid(for some hour)) whenever connection is made. If valid allows to enter in to some page else redirects to the login page. Any how that was all about this trick. Again I need to say thank you both peoples around this website and Mr Paul Calphu.