You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Korneyev <ak...@mindspring.com> on 2004/11/22 19:58:55 UTC
setting JSESSION variable
what is the proper way to set jsession id if i want my own id?
basically the situation is as follows.
my user authenticates into domain.com
then depending on what his/her locale is i forward them to
http://lang.domain.com * i.e. http://us.domain.com
the problem is that once they authenticate and i redirect them to
another server, JSESSION id is lost;
is there a manual way to set it?
currently i do this:
https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
however, on the backend, when i do:
request.getCookies() it is returning null
any ideas?
alex
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Re[2]: setting JSESSION variable
Posted by Jacob Kjome <ho...@visi.com>.
Sorry, I don't use jk2. However, I would think they would have made it
jsessionid aware. I think addin the rewrite rule is the way to go, but you'll
have to get verification of that from someone else.
Good luck!
Jake
Quoting Alex Korneyev <ak...@mindspring.com>:
> Hello Jacob Kjome,
>
> lovely :)
>
> however, since i have Apache as a middle man, i get this error:
>
> You don't have permission to access
>
> /secure;JSESSIONID=16E54F0A406582505A7A393E5307BC12&VA1=VAL1 on this server.
>
> this is related to : http://www.jguru.com/faq/view.jsp?EID=53878
>
> however, i am using mod_jk2
>
> any idea how to set this up with mod_jk2 ?
>
> alex k.
>
> Monday, November 22, 2004, 2:12:38 PM, you wrote:
>
> > Try...
>
> >
>
https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1
>
> > Yes, order is important!
>
> > Jake
>
> > Quoting Alex Korneyev <ak...@mindspring.com>:
>
> >> what is the proper way to set jsession id if i want my own id?
> >>
> >> basically the situation is as follows.
> >>
> >> my user authenticates into domain.com
> >>
> >> then depending on what his/her locale is i forward them to
> >> http://lang.domain.com * i.e. http://us.domain.com
> >>
> >> the problem is that once they authenticate and i redirect them to
> >> another server, JSESSION id is lost;
> >>
> >> is there a manual way to set it?
> >>
> >> currently i do this:
> >>
> >>
> >>
> >
>
https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
> >>
> >> however, on the backend, when i do:
> >>
> >> request.getCookies() it is returning null
> >>
> >> any ideas?
> >>
> >> alex
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> >> tomcat-user-help@jakarta.apache.org
> >>
>
>
>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> --
> Best regards,
> Alex mailto:akorneyev@mindspring.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re[2]: setting JSESSION variable
Posted by Alex Korneyev <ak...@mindspring.com>.
Hello Jacob Kjome,
lovely :)
however, since i have Apache as a middle man, i get this error:
You don't have permission to access
/secure;JSESSIONID=16E54F0A406582505A7A393E5307BC12&VA1=VAL1 on this server.
this is related to : http://www.jguru.com/faq/view.jsp?EID=53878
however, i am using mod_jk2
any idea how to set this up with mod_jk2 ?
alex k.
Monday, November 22, 2004, 2:12:38 PM, you wrote:
> Try...
> https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1
> Yes, order is important!
> Jake
> Quoting Alex Korneyev <ak...@mindspring.com>:
>> what is the proper way to set jsession id if i want my own id?
>>
>> basically the situation is as follows.
>>
>> my user authenticates into domain.com
>>
>> then depending on what his/her locale is i forward them to
>> http://lang.domain.com * i.e. http://us.domain.com
>>
>> the problem is that once they authenticate and i redirect them to
>> another server, JSESSION id is lost;
>>
>> is there a manual way to set it?
>>
>> currently i do this:
>>
>>
>>
> https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
>>
>> however, on the backend, when i do:
>>
>> request.getCookies() it is returning null
>>
>> any ideas?
>>
>> alex
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> tomcat-user-help@jakarta.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Best regards,
Alex mailto:akorneyev@mindspring.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: setting JSESSION variable
Posted by Jacob Kjome <ho...@visi.com>.
Try...
https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1
Yes, order is important!
Jake
Quoting Alex Korneyev <ak...@mindspring.com>:
> what is the proper way to set jsession id if i want my own id?
>
> basically the situation is as follows.
>
> my user authenticates into domain.com
>
> then depending on what his/her locale is i forward them to
> http://lang.domain.com * i.e. http://us.domain.com
>
> the problem is that once they authenticate and i redirect them to
> another server, JSESSION id is lost;
>
> is there a manual way to set it?
>
> currently i do this:
>
>
>
https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
>
> however, on the backend, when i do:
>
> request.getCookies() it is returning null
>
> any ideas?
>
> alex
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org