Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

New HttpSession is created for each DataSourceRequest

$
0
0
Hi,
We are using SmartGWT-4.0p v9.0p_2013-07-29/PowerEdition Deployment (built 2013-07-29)

We are trying to control HttpSession timeout using
Code:

  <session-timeout>30</session-timeout> <!-- in minutes -->
in web.xml

HttpSession in DataSourceRequest is getting timed out and a new session is being created for
each DataSourceRequest.



Code:

        {
        // don't create if it doesn't exist but smart client creates new session hence check userId
        // from session
        HttpSession session = dsRequest.getHttpServletRequest().getSession(false);
               
                //On session timeout, session must be null and in case session exists even then smart client creates new session and all the values set in session is lost.
        }

Please look into the issue and help us in overcoming this problem.

Thanks
Madan

Viewing all articles
Browse latest Browse all 4756

Trending Articles