Great.

I don't mean to be a bonehead, but what's the right way to redirect
based on name?

I'm not using Apache on the front, so I don't have the mod_rewrite
(nor do I understand how to use it... yet).

On 8/15/05, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> I'm not sure if there is a technical way to do this or not as it's the 
> browser that saves the cookie based on the current URL.
> 
> The way I would do this is to not allow the user to create a session in one 
> of them in the first place. ie, if they browse to blahblah.com then just 
> redirect them to www.blahblah.com so that whenever they are interacting with 
> the webapp.
> 
> Ta
> Matt
> 
> -----Original Message-----
> From: Michael Teter [mailto:[EMAIL PROTECTED]
> Sent: 15 August 2005 21:05
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: session problems: www.blahblah.com versus blahblah.com
> 
> 
> I tried that, but it's not working.
> 
> I tried:
> <Host name="blahblah.com">
>   <Alias>www.blahblah.com</Alias>
> </Host>
> 
> and I also tried:
> <Host name="www.blahblah.com">
>   <Alias>blahblah.com</Alias>
> </Host>
> 
> Both ways, I still got a session cookie associated with the name the
> user entered as the address.  If the user then changed the address to
> www., it created a new session and session cookie (with the new name).
> 
> On 8/15/05, Peter Rossbach <[EMAIL PROTECTED]> wrote:
> > Hmm,
> >
> > I thing  a host alias at for your tomcat configuration was helpfull :-)
> >
> > <Host name="blahblah.com" >
> >     <Alias>www.blahblah.com</Alias>
> >
> > </Host>
> >
> > Peter
> >
> > Michael Teter schrieb:
> >
> > >Howdy.
> > >
> > >I'm having some problems with sessions.
> > >
> > >If my users come to "blahblah.com", then go away, then return, they
> > >get a new session id (for www.blahblah.com).
> > >
> > >But if they come to www.blahblah.com, leave, and return (via link from
> > >external site), they keep the same session.
> > >
> > >I finally discovered that the browser (Firefox in this case) ends up
> > >with two different session cookies - one for www.blahblah.com and one
> > >for blahblah.com.
> > >
> > >What's the right thing to do to solve this?
> > >
> > >Thanks much.
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to