Kapalı

Dropped sessions (Tomcat/JSP) within iFrame

This is the current problem…

1) When a user lands on a registration page jsp within iframe - captcha image displayed & session attribute set with 5 character code.

See [url removed, login to view] for captcha implementation.

Within JSP:

The [url removed, login to view] corresponding config:

jcaptcha

[url removed, login to view]

servlet>

jcaptcha

/[url removed, login to view]

The following is from the source of captcha library used:

String capText = [url removed, login to view]();

[url removed, login to view]().setAttribute(Constants.SIMPLE_CAPCHA_SESSION_KEY, capText);

The [url removed, login to view]() tells me that if no session exists, then one is created.

2) User fills out form & submits.

3) Within validation servlet, the following returns null for session:

HttpSession session = [url removed, login to view](false);

To avoid null, I must use [url removed, login to view]() or [url removed, login to view](true) but this obviously creates a new session as none exists already.

Any idea why the session would be lost in between time of creation of captcha & time of validation? Is there any tomcat configuration apart from the default 30 mins session timeout which might help? Why would this be an intermittent problem which I cannot replicate; only when I see the live logs under load do I see the problems.

Beceriler: Java, JSP

Daha fazlasını görün: jcaptcha iframe, jsp session iframe, tomcat iframe session, session lost iframe jsp, iframe session jsp, jsp iframe session, tomcat session iframe, session iframe jsp, iframe session lost jsp, session jsp iframe, session iframe tomcat, iframe session tomcat problem, iframe jsp session, session jsp, iframe tomcat problem session, iframe session lost tomcat, jcaptcha tomcat jsp, jcaptcha tomcat, captcha iframe problem, iframe tomcat, iframe problem tomcat, problem iframe tomcat session, string problems, string problem, string library

İşveren Hakkında:
( 0 değerlendirme ) london, United Kingdom

Proje NO: #86655

3 freelancer bu iş için ortalamada 117$ teklif veriyor

gord

Please check PMB.

1 gün içinde 100$ USD
(4 Değerlendirme)
5.8
sah2ed

Hello, I have possible solution detailed on the PMB. Cheers.

in 0 gün içinde100$ USD
(23 Değerlendirme)
4.9
uma82

Hi, We can do this, if we can see the files? Thanks Uma

in 2 gün içinde150$ USD
(0 Değerlendirme)
0.0