aspose file tools*
The moose likes JSP and the fly likes Session Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Session Management" Watch "Session Management" New topic
Author

Session Management

jaffrin abdul salam
Greenhorn

Joined: Sep 16, 2005
Posts: 23
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

Joined: Mar 22, 2000
Posts: 12825
    
    5
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

Joined: Sep 16, 2005
Posts: 23
Will it degrade the performance in the server?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
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

Joined: Jan 25, 2007
Posts: 226
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


Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
 
Don't get me started about those stupid light bulbs.
 
subject: Session Management