Originally posted by sanjay sawant:
From Vel's Notes:
1.2.given a scenario, state whether a session object will be invalidated
1.2.1.ideally, a session would be invalidated as soon as the user closed his browser, browsed to a different site, or stepped away from his desk. Unfortunately, there’s no way for a server to detect any of these events.
Can someone please explain me 1.2.1.
I am confused.
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Originally posted by Gagan Indus:
Gautam
Alright we can capture all those browser-window event with javascript on client-side , but in this case these events are interest of server-only , coz that is where actual session is being maintained.
is there a way you can communicate these events to server ? one may think yes , with javascript send info over HTTP but for that u will need to open another window ! or acces other URL etc etc .
And then these are just few of the 'ideal' conditions , you cant build 'trap' for all such things occuring on the client side
So much better way is to use 'timeouts' at server-side , which is what a web-container like tomcat/resin does
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Originally posted by Gagan Indus:
Oh i meant Gautam , NOT Gaurav .. :roll:
and yes William yer right we absolutely cant reply on javascript ( it isnt even supported as-is by all client)
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>