RE: Session Persistence + tomcat 4.1.24

2003-07-02 Thread Shapira, Yoav

Howdy,
Modify session-config in web.xml.  -1 (never expire) is a possible legal
value.  See the Servlet Specification for more details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Dipl.Ing. Torsten Liermann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 10:08 AM
To: [EMAIL PROTECTED]
Subject: Session Persistence + tomcat 4.1.24

Hi,

I would like to use persistent sessions with tomcat 4.1.24, but I
wonder
why the tomcat session cookie is only a browser session cookie. How can
I configure the expiry date of the session cookies?

Thanks
Torsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Session Persistence + tomcat 4.1.24

2003-07-02 Thread Dipl.Ing. Torsten Liermann
Yes, I have this

  session-config
session-timeout-1/session-timeout!-- no timeout --
  /session-config

but the session cookie is always a browser session cookie. :(


On Wed, 2 Jul 2003 10:12:06 -0400
 Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 Modify session-config in web.xml.  -1 (never expire) is a possible
 legal
 value.  See the Servlet Specification for more details.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Dipl.Ing. Torsten Liermann [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 
July 02, 2003 10:08 AM
 To: [EMAIL PROTECTED]
 Subject: Session Persistence + tomcat 4.1.24
 
 Hi,
 
 I would like to use persistent sessions with tomcat 4.1.24, but I
 wonder
 why the tomcat session cookie is only a browser session cookie. How
 can
 I configure the expiry date of the session cookies?
 
 Thanks
 Torsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Dipl.-Ing. Torsten Liermann  Tel: +49 172/8314436
Fuchsweg 76  Fax: +49 8106/358047
85598 Baldham   http://liermann-it.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: session between tomcat and IIS

2002-02-06 Thread colin . madere


Since I just ran into the problem of sharing cookies between IIS and Tomcat,
I noticed this trait:

Tomcat can read cookies set by IIS/ASP, but IIS/ASP can NOT read cookies set
by Tomcat.

(sorry for the not including original message, just subscribed)

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: session between tomcat and IIS

2002-02-06 Thread colin . madere

I should have listed versions and such.  The below situation was found
running:

NT 4.0 SP6, IIS 4, Tomcat 3.3a with NS6 / IE 5.5/6 as client on NT 4 SP6.

 --
 From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
 Reply To: Tomcat Users List
 Sent: Wednesday, February 06, 2002 6:10 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: session between tomcat and IIS
 
 
 Since I just ran into the problem of sharing cookies between IIS and
 Tomcat,
 I noticed this trait:
 
 Tomcat can read cookies set by IIS/ASP, but IIS/ASP can NOT read cookies
 set
 by Tomcat.
 
 (sorry for the not including original message, just subscribed)
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session with Tomcat

2001-11-22 Thread Luke Studley

Also  maybe try disabling sessions tracking through cookies in the
server.xml.

-Original Message-
From: Stefano Bonnin [mailto:[EMAIL PROTECTED]] 
Sent: 22 November 2001 13:23
To: [EMAIL PROTECTED]
Subject: Session with Tomcat

Hi,

I have developed a web application with Tomcat+Cocoon. Now I have noticed
that if, on the same machine, I open two MSIE, Tomcat return the same
session.

This is no good for me because the browsers on the same machine share the
same session objects!!

How can I do?

Thanks in advance.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session with Tomcat

2001-11-22 Thread Alexandre Victoor

Hi,
This is quite normal because your 2 IE windows share the same cookies and 
so the same session ids.
If you have a second browser, like netscape or opera, you can do easily 
your test.
Regards

Alex




Hi,

I have developed a web application with Tomcat+Cocoon. Now I have noticed
that if, on the same machine, I open two MSIE, Tomcat return the same
session.

This is no good for me because the browsers on the same machine share the
same session objects!!

How can I do?

Thanks in advance.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session of Tomcat.

2001-08-16 Thread Michael Wentzel

 Can I catch the event when a session is created from tomcat?


Yes, take a look at javax.servlet.HttpSessionBindingListener in servlet API.
This has been covered on this group before please look at the list archives.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



Re: Session of Tomcat.

2001-08-16 Thread Rob S.

 Yes, take a look at javax.servlet.HttpSessionBindingListener in servlet
 API. This has been covered on this group before please look at the list
 archives.

HSBL is when something is bound to the session, not when the session itself is created.

You can create the sessions yourself I guess =)

- r




RE: Session of Tomcat.

2001-08-16 Thread Craig R. McClanahan



On Thu, 16 Aug 2001, Michael Wentzel wrote:

  Can I catch the event when a session is created from tomcat?
 
 
 Yes, take a look at javax.servlet.HttpSessionBindingListener in servlet API.
 This has been covered on this group before please look at the list archives.
 

Actually, this doesn't accurately answer the original question.

You can indeed use HttpSessionBindingListener to detect when a particular
object is *added* to a session.  That is not the same as when the session
is *created*.  Note that it explicitly requires the application to
participate (by adding a specific session attribute).

In a servlet 2.3 environment (i.e. Tomcat 4), there is a new feature
called application event listeners.  In particular, there are defined
listeners for session created and session destroyed that are called at
those precise times, not just when a particular object is added and
removed.

 ---
 Michael Wentzel

Craig McClanahan





RE: Session of Tomcat.

2001-08-16 Thread Michael Wentzel

   Can I catch the event when a session is created from tomcat?
  
  
  Yes, take a look at 
 javax.servlet.HttpSessionBindingListener in servlet API.
  This has been covered on this group before please look at 
 the list archives.
  
 
 Actually, this doesn't accurately answer the original question.
 
 You can indeed use HttpSessionBindingListener to detect when 
 a particular
 object is *added* to a session.  That is not the same as when 
 the session
 is *created*.  Note that it explicitly requires the application to
 participate (by adding a specific session attribute).
 
 In a servlet 2.3 environment (i.e. Tomcat 4), there is a new feature
 called application event listeners.  In particular, there are defined
 listeners for session created and session destroyed that 
 are called at
 those precise times, not just when a particular object is added and
 removed.

That is what I mean.  Binding Listeners and the Tomcat 4 implementation
of the listeners have been discussed before and can be referred to in
more detail in the archives.  I believe someone mentioned doing this
with a SessionInterceptor and the binding listener a while back but
I'm not sure.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com




Re: Session of Tomcat.

2001-08-16 Thread Bo Xu

Harden ZHU wrote:

 Hi,

 Can I catch the event when a session is created from tomcat?

 Thx

 Harden

in:
http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi_p.html

...
The session listener model is similar to the context listener model. In
the session model, there's an
HttpSessionListener interface with two methods:
void sessionCreated(HttpSessionEvent e): Called when a session is
created
void sessionDestroyed(HttpSessionEvent e): Called when a session is
destroyed (invalidated)
...



j.h.   :-) :-):-) :-):-)






RE: Session in Tomcat

2001-05-30 Thread Randy Layman


About the session numbers:  it uses SecureRandom to generate the
numbers.  More information can be found in Tomcat's source code for
org.apache.tomcat.session.StandardManager, the method getNewSession seems to
be particularly relevant.

About storage of JSessionID: the clients software is free to store
it wherever it wants.  Most web browsers persist this to the disk as soon as
they receive the cookie, but some delay and only persist when they want to.

Randy

 -Original Message-
 From: Pablo Trujillo [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: Session in Tomcat
 
 
 Hello friends,
 I need information about how Tomcat assign the numbers of ID for each
 session.
 I also need to know where is  the Cookie JSessionID stored.
 I wait you can help me and  thank you
 Pablo
 



RE: session between tomcat and IIS

2001-01-17 Thread CPC Livelink Admin


Could this be that the JSESSIONID cookie is scoped to the webapp.  IE if
your webapp is called FOO, then only pages below /FOO can get that cookie.
Also, I am assuming you are on the same server, since cookies don't travel
across servers.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 2:58 PM
To: [EMAIL PROTECTED]
Subject: session between tomcat and IIS




Hello,
I'm in a bit of a peckerwood situation here.  Tomcat 3.2.1  Apache is the
preferred apps but I have been told to integrate with an IIS machine.  Ok,
so my
problem is that we create a session w/Tomcat and pass along some credentials
in
the session object.  Everything is well and good except when the page needs
to
go to the ASP stuff.  IIS is happy to create a session/cookie
ASPSESSIONIDGGQQGGED however, if the asp page asks about the cookie
JSESSIONID
(from tomcat), it finds nothing.  Anyone have any thoughts on how to pass
the
data around?  Currently, my non-elegant solution is to use a form with
hidden
fields to post to the asp page and from there, it can decode the form
variables.
What are some other options?

/bill



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]