• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management

 
jaffrin abdul salam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First I will explain my project that i am working with.
The project is generating PDF document from orcale Forms.
In the orcale forms,they have a button called GENERATE,when i click that JSP is invoked.In that JSP you can edit and modify the datas,After that you click the generate button there.Its going to generate the PDF document.
NOw coming to the problem i have now

WE have set the session in the JSP for half hour.
But my manager wanted to set the session for 11 or 12 hours.
THE jsp contains a very long document,so the user may type a 1000 words document is JSP.IF the session is set for half hour,it may expire before the user completing the document in JSP.
One of my SENIOR PROGRAMMER is saying..Its not a good idea to set the session for 11 or 12 hours.
I thought that session is for security purpose...when the application is opened for a long time, someone else able to see the datas and modify it.


Can anybody tell why we are using session?
And If the set the session for 12 hours..wot will happen?
And why its not a good idea to set the session for 11 0r 12 hours.

THanks In advance.
Jaffrin
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And If the set the session for 12 hours..wot will happen?
And why its not a good idea to set the session for 11 0r 12 hours.


If the session is not invalidated it will hang around on the server for 11 or 12 hours. Of course the server may be able to serialize it to disk so this is not necessarily a problem.

Bill
 
jaffrin abdul salam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will it degrade the performance in the server?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No - a well designed servlet container will do serialization of sessions when it doesn't have requests to work on. Serialization is surprisingly fast anyway.
Bill
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, as far as i am aware...

YOu will have to find some way to put the stuff back to persistent storage and use it back when needed...

I am sorry to take it further as i dont know the implementation side of it....

if someone can help with that too, it will be great
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic