cancel
Showing results for 
Search instead for 
Did you mean: 

Read Session ID in WD

Former Member
0 Kudos

Hi,

what have I to do to read the Session ID of the actual session. (Session concept ?)

Which libraries have to be included and how could be the code?

best regards

Mathias

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Mathias,

You could add the Catpcha on Logon Page?

Regards

former_member182372
Active Contributor
0 Kudos

Hi Mathias,

What kind if business scenario requires seesion ID on WD?

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

in the last view days, I implemented a passwording as graphic picture to enter my a page with answering a "captcha" ( or http://en.wikipedia.org/wiki/Captcha).

Jcaptcha generates an image which has to be read by the (human) user and typed into a input field to make shure that there is a human who uses the page (this page cannot use an usual authentification, because it is a free site for anybody - a user registration process site ).

To generate this image in a secure way it is recommended to give the framework the actual session id.

So, I`m thinking about to get this session id.

Can you help me?

best regards

Mathias

former_member182372
Active Contributor
0 Kudos

Hi Mathias,

Are you running your app under Portal?

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi,

yes I do.

I actually solved the problem with taking the servlet.jar in my library.

With that the command:

HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

HttpSession session = request.getSession(true);

String sessionId = session.getId();

...is possible.

regards

Mathias

former_member182372
Active Contributor
0 Kudos

Hi Mathias,

Keep in mind possible side effect

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Mathias, Actually I have a webdynpro Application with Captcha. I execute Jcapcha class and the application creates the images in the server, but it does not show the image in the image control. Could you explain to me how do you implement it?

Which object do you use to show the image?

Thanks in advance

Regards

Alexis

Former Member
0 Kudos

Mathias and Alexis,

what about writing a Weblog about your JCaptcha applications?

Armin