File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes jsf jsp(netbean 6.5.1 woodstock session problem) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jsf jsp(netbean 6.5.1 woodstock session problem)" Watch "jsf jsp(netbean 6.5.1 woodstock session problem)" New topic
Author

jsf jsp(netbean 6.5.1 woodstock session problem)

Melaku Bekele
Greenhorn

Joined: Jun 03, 2011
Posts: 5
Dear all*,
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.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18993
    
    8

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.
Melaku Bekele
Greenhorn

Joined: Jun 03, 2011
Posts: 5
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.
Melaku Bekele
Greenhorn

Joined: Jun 03, 2011
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf jsp(netbean 6.5.1 woodstock session problem)