Re: Valves, requests and getting the session

2002-07-01 Thread John Baker
Mmm. It would appear I can only get the session if the value is defined in the Context in server.xml. Ie I cannot define it in the default location in server.xml (where the catalina SingleSIgnOn is commented) and expect it to work. Is this correct? And if so, can I achieve what I want to, ie

Re: Valves, requests and getting the session

2002-07-01 Thread Henner Zeller
Hi, Yes, I am. I need to check to see if certain objects are in the session and if not, see if they are in another session that is pointed to by the Cookie id. It's like SingleSignOn, but slightly different. However I'm a bit confused to why I can't get a session, even when the rest of

Re: Valves, requests and getting the session

2002-07-01 Thread John Baker
On Monday 01 July 2002 10:43, Henner Zeller wrote: Hi, Yes, I am. I need to check to see if certain objects are in the session and if not, see if they are in another session that is pointed to by the Cookie id. It's like SingleSignOn, but slightly different. However I'm a bit confused

Re: Valves, requests and getting the session

2002-07-01 Thread Craig R. McClanahan
On Mon, 1 Jul 2002, John Baker wrote: Date: Mon, 1 Jul 2002 09:20:44 +0100 From: John Baker [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: Valves, requests and getting the session Mmm. It would appear I

Re: Valves, requests and getting the session

2002-07-01 Thread Russ Trotter
I don't know if you've considered this, but why not just make a Filter (ala Servlet 2.3) instead of a valve? They are more portable to other containers and should have less quirky behavior than you see now with valves. I use a filter to do a very similar operation where I check the session

Re: Valves, requests and getting the session

2002-07-01 Thread John Baker
On Monday 01 July 2002 6:49 pm, Craig R. McClanahan wrote: One workaround is to put your valve inside each Context element (either directly or -- I think this works, but have never tried it -- by embedding them in a DefaultContext that sets the properties for all contexts in that host.

Re: Valves, requests and getting the session

2002-06-30 Thread Peter Lin
--- John Baker [EMAIL PROTECTED] wrote: Hello. I'm am trying to write a Valve, very much like SingleSignOn but for our authetnication system that uses more than just a username and password. I want my Valve to pass login information from one Session to another when a user uses

Re: Valves, requests and getting the session

2002-06-30 Thread John Baker
On Sunday 30 June 2002 7:32 pm, Peter Lin wrote: --- John Baker [EMAIL PROTECTED] wrote: Hello. I'm am trying to write a Valve, very much like SingleSignOn but for our authetnication system that uses more than just a username and password. I want my Valve to pass login information

Re: Valves, requests and getting the session

2002-06-30 Thread Craig R. McClanahan
On Sun, 30 Jun 2002, John Baker wrote: Date: Sun, 30 Jun 2002 19:00:18 +0100 From: John Baker [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Valves, requests and getting the session Hello. I'm am trying to write a Valve, very much

Re: Valves, requests and getting the session

2002-06-30 Thread John Baker
On Sunday 30 June 2002 9:25 pm, Craig R. McClanahan wrote: Will always print null. I assume I can get at the session from this level and I'm obviously doing something dumb. Are there any obvious things I should check? Try this slight variation (based on what Catalina does in the

Re: Valves, requests and getting the session

2002-06-30 Thread Craig R. McClanahan
On Sun, 30 Jun 2002, John Baker wrote: Date: Sun, 30 Jun 2002 21:27:36 +0100 From: John Baker [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: Valves, requests and getting the session On Sunday 30 June 2002 9

Re: Valves, requests and getting the session

2002-06-30 Thread John Baker
On Sunday 30 June 2002 9:35 pm, Craig R. McClanahan wrote: Hmm ... this is baslically how the standard form-based login implementation creates a session, except that it goes on and gets the internal Session object ... That's what I thought. I presume you're trying to create the session