Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session

 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application is using cookies for session tracking.means cookies are enabled.

in this case Whether the session will be destroyed when we close the browser?

because when we close the browser cookies will be destroyed.

session object will be there in the container server-side but not in the client side.

am i correct?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by deepa raj:

when we close the browser cookies will be destroyed.



i think cookies will store into your system

check the path C:\Documents and Settings\yourname\cookies

correct me,if i am wrong
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi seetharaman,

from HFSJ

i am reading the concepts only.. :-)
 
arun nohwar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cookies will definitely remain in the system, even if we close the browser.
The path to cookies is as mentioned by venky above.
In Internet explorer >> Tools >> Internet Options >> General Tab,
there is a Delete Cookies button, that will delete the cookies stored in system.
The closing of the browser does not trigger the deletion of cookies.
 
Hema Nandhini
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To add more details, if we are creating a cookie ourself, we can set the expiration time for that cookie using Cookie.setMaxAge(int). Setting the MaxAge as -1 will make the cookie to expire immediately when the browser is closed. Check this out for better understanding:

http://www.coderanch.com/t/172141/java-Web-Component-SCWCD/certification/Session-cookie-timeouts-confusing
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic