JSESSIONID cookie - Help!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HTTP Server > JSESSIONID cookie - Help!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

Nau is offline     JSESSIONID cookie - Help!  
Nau


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for Nau Click here to Send Nau a Private Message Find more posts by Nau Add Nau to your buddy list
 
07-15-04 10:17 AM

Hi, All

I have a need to call a servlet from another one withing the same session:

URL url = new URL( someURL );
URLConnection connection = url.openConnection();
connection.setDoInput( true );
connection.setRequestProperty( "Cookie", "JSESSIONID=" + request.getSession(
).getId() );

This piece of code works fine for Tomcat but on Webspere I'm getting a new s
ession.

Any help please!
Thanks a million

Nau




[ Post a follow-up to this message ]



    Re: JSESSIONID cookie - Help!  
Todd Kaplinger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-15-04 11:00 PM

What is the reason for doing a URL connection instead of an internal
dispatch (for example RequestDispatcher.include() )?

Nau wrote:
> Hi, All
>
> I have a need to call a servlet from another one withing the same
> session:
>
> URL url = new URL( someURL );
> URLConnection connection = url.openConnection();
> connection.setDoInput( true );
> connection.setRequestProperty( "Cookie", "JSESSIONID=" +
> request.getSession().getId() );
>
> This piece of code works fine for Tomcat but on Webspere I'm getting a
> new session.
>
> Any help please!
> Thanks a million
>
> Nau
>
>
>
> --
> Nau
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message308924.html
>






[ Post a follow-up to this message ]



    Re: JSESSIONID cookie - Help!  
Ben_


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-15-04 11:00 PM

Please avoid multi-posting. Also, 'http-servers' newsgroup is not very well
suited for this question.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:03 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register