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:


[url removed, login to view]



/[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.

Kemahiran: Java, JSP

Lihat lagi: 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, the string problem, string problems, string problem

Tentang Majikan:
( 0 ulasan ) london, United Kingdom

ID Projek: #86655

3 pekerja bebas membida secara purata $117 untuk pekerjaan ini


Please check PMB.

$100 USD dalam sehari
(4 Ulasan)

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

$100 USD dalam 0 hari
(23 Ulasan)

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

$150 USD dalam 2 hari
(0 Ulasan)