• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

session tracking

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a session where i put name and value.
And i want to retrieve all from a new browser.
To be clearer, i open a browser and i access my servlet...i set the names and vales to put in my session that i just went to create by accessing my servlet. And i close this browser, and now i open a new browser,with this new browser when i'm accessig to my servlet i want to retrieve my last parameters(name and value).. How can i do it?
Can you post me the code ? thank you.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sessions depend on (typically) a cookie stored on the user's browser. If your next request does not contain the cookie, you lose the session. Probably thats what is happening with your new browser.
Bill
 
Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks all for replying.
Then it would like to say that with a new browser i could get my attributes if i send the session id in the cookie? i don't understand. because i tried it and when i'm opening a new browser i get a new session id and while invoking my servlet i don't see my atrributes in the session that i did put atrributes with my first browser.
I'm looking for the response for this. So the server will know that it's really this user who is connecting again to the server with a new browser.
Thank for help.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See my response to the other question about sessions.
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic