It's not a secret anymore!
The moose likes Servlets and the fly likes Passing info in a session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing info in a session" Watch "Passing info in a session" New topic

Passing info in a session

Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
I am not sure if I am posting in the correct group or not but,
Can anyone give me some lead on sessions? What I want to do is pass information from one HTML screen to another. This info changes depending on the person's ID.
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

Hi Suresh -
There are *lots* of potentially appropriate forums -- it all depends on what techniques best help you achieve your goal.
The most popular approach to this is probably using cookies -- small text files written and stored on the client that tell a server if a person has visited before and possibly what they've done so far, etc. The Servlets forum would be the best place to look fpr help.
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
You definitely want to be looking at servlets/jsp's where you can use HttpSessions (into which you can stuff serializable data). I'm going to move this to the servlet forum.
I agree. Here's the link:
subject: Passing info in a session
It's not a secret anymore!