Thanks, Ludwig Fischer!

But, I want to try to make a session like class for studying.
Any idea?

:>)

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API 
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Ludwig Fischer
Sent: Thursday, May 25, 2000 6:11 PM
To: [EMAIL PROTECTED]
Subject: AW: Hoe can I make my own session module?


Hi!

I think you don't need your own SessionModule.

The sessionmechanism works with cookies, so when you have deactivated
cookies
in your browser sessions will not work.
The Servlet-API sends a cookie to the browser which contains the session-id.
At later requests the API reads the cookies from the browser and finds the
session-id.
By this id you get the correct session-object.

Better way:
Send the session-id (packed in a html-document e.g. a Form-Tag) to the
browser. When
you submit the form, the session-id will be sent to the servlet as a
parameter of the Form.
In the servlet you read the session-id (request.getParmeter(....)) and get
the session
from the sessioncontext. Then you can read the values with getValue(..).


hope I helped you.

;-)


-----Urspr�ngliche Nachricht-----
Von: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Im Auftrag von
Manhee Lee
Gesendet: Donnerstag, 25. Mai 2000 09:39
An: [EMAIL PROTECTED]
Betreff: Hoe can I make my own session module?


Dear, servlet-interests!

This is a novice, in servlet field.
I have a problem with session.
I put the value using session.putValue but that session didn't pass it back
by getValue.

So, I thought how could I make my own session like module.
It means that I want to pass parameters not by session module but by my own
module.

I know it is possable but what is the best way to get it?
If you don't mind I want to get sample source code.

Thanks in advance.
:>)

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to