• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Session

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi seetharaman,

from HFSJ

i am reading the concepts only.. :-)
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

https://coderanch.com/t/172141/java-Web-Component-SCWCD/certification/Session-cookie-timeouts-confusing
 
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic