You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "Rout, Biswajeet" <bi...@verizon.com> on 2020/01/30 07:33:47 UTC

Web session httpSession issue.

Hi,

I have used Web session clustering. The web session is clustered across the
nodes, I am happy about that. But there is one issue I found.

In my application I store *UserInfo* object inside the httpSession object
inside one of my spring controllers. When my view gets loaded( which is a *JSP
page*) I try feting the *UserInfo* from the httpSession object which I get
as *null*(I do not find any parameter on the same key name as userInfo I
set before). Where as I reload the URL again, it finds the UserInfo inside
the httpSession object.

So why did it not find/set the object at first place?
Is anyone familiar with this kind of behaviour?

The object ignite implements for httpSession is *WebSessionV2*.

Regards,


Biswajeet *Rout*


Dtix-DELPHI


O 181 361 7630
M 970 334 9977

<http://www.facebook.com/verizon>   <http://twitter.com/verizon>
<http://www.linkedin.com/company/verizon>
<http://www.instagram.com/verizon>

Re: Web session httpSession issue.

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Can you throw together a simple reproducer to this issue, put it on github?
I would look.

Regards,
-- 
Ilya Kasnacheev


пт, 31 янв. 2020 г. в 15:44, Rout, Biswajeet <bi...@verizon.com>:

> Hi,
>
> What I apparently noticed, my *JSESSION ID is changing* when my request
> goes from spring controller class to jsp page. And also it *returns a
> different JSESSION ID to the browser*.
>
> have I configured the websession wrong?
> Can anyone please help on this issue?
>
> Regards,
>
>
> Biswajeet *Rout*
>
>
> Dtix-DELPHI
>
>
> O 181 361 7630
> M 970 334 9977
>
> <http://www.facebook.com/verizon>   <http://twitter.com/verizon>
> <http://www.linkedin.com/company/verizon>
> <http://www.instagram.com/verizon>
>
>
>
> On Fri, Jan 31, 2020 at 1:03 PM Rout, Biswajeet <
> biswajeet.rout@verizon.com> wrote:
>
>> Hi,
>>
>> Any one from Ignite team can clarify my doubt please?
>>
>> Regards,
>>
>>
>> Biswajeet *Rout*
>>
>>
>> Dtix-DELPHI
>>
>>
>> O 181 361 7630
>> M 970 334 9977
>>
>> <http://www.facebook.com/verizon>   <http://twitter.com/verizon>
>> <http://www.linkedin.com/company/verizon>
>> <http://www.instagram.com/verizon>
>>
>>
>>
>> On Thu, Jan 30, 2020 at 1:03 PM Rout, Biswajeet <
>> biswajeet.rout@verizon.com> wrote:
>>
>>> Hi,
>>>
>>> I have used Web session clustering. The web session is clustered
>>> across the nodes, I am happy about that. But there is one issue I found.
>>>
>>> In my application I store *UserInfo* object inside the httpSession
>>> object inside one of my spring controllers. When my view gets loaded( which
>>> is a *JSP page*) I try feting the *UserInfo* from the httpSession
>>> object which I get as *null*(I do not find any parameter on the same
>>> key name as userInfo I set before). Where as I reload the URL again, it
>>> finds the UserInfo inside the httpSession object.
>>>
>>> So why did it not find/set the object at first place?
>>> Is anyone familiar with this kind of behaviour?
>>>
>>> The object ignite implements for httpSession is *WebSessionV2*.
>>>
>>> Regards,
>>>
>>>
>>> Biswajeet *Rout*
>>>
>>>
>>> Dtix-DELPHI
>>>
>>>
>>> O 181 361 7630
>>> M 970 334 9977
>>>
>>> <http://www.facebook.com/verizon>   <http://twitter.com/verizon>
>>> <http://www.linkedin.com/company/verizon>
>>> <http://www.instagram.com/verizon>
>>>
>>>

Re: Web session httpSession issue.

Posted by "Rout, Biswajeet" <bi...@verizon.com>.
Hi,

What I apparently noticed, my *JSESSION ID is changing* when my request
goes from spring controller class to jsp page. And also it *returns a
different JSESSION ID to the browser*.

have I configured the websession wrong?
Can anyone please help on this issue?

Regards,


Biswajeet *Rout*


Dtix-DELPHI


O 181 361 7630
M 970 334 9977

<http://www.facebook.com/verizon>   <http://twitter.com/verizon>
<http://www.linkedin.com/company/verizon>
<http://www.instagram.com/verizon>



On Fri, Jan 31, 2020 at 1:03 PM Rout, Biswajeet <bi...@verizon.com>
wrote:

> Hi,
>
> Any one from Ignite team can clarify my doubt please?
>
> Regards,
>
>
> Biswajeet *Rout*
>
>
> Dtix-DELPHI
>
>
> O 181 361 7630
> M 970 334 9977
>
> <http://www.facebook.com/verizon>   <http://twitter.com/verizon>
> <http://www.linkedin.com/company/verizon>
> <http://www.instagram.com/verizon>
>
>
>
> On Thu, Jan 30, 2020 at 1:03 PM Rout, Biswajeet <
> biswajeet.rout@verizon.com> wrote:
>
>> Hi,
>>
>> I have used Web session clustering. The web session is clustered
>> across the nodes, I am happy about that. But there is one issue I found.
>>
>> In my application I store *UserInfo* object inside the httpSession
>> object inside one of my spring controllers. When my view gets loaded( which
>> is a *JSP page*) I try feting the *UserInfo* from the httpSession object
>> which I get as *null*(I do not find any parameter on the same key name
>> as userInfo I set before). Where as I reload the URL again, it finds the
>> UserInfo inside the httpSession object.
>>
>> So why did it not find/set the object at first place?
>> Is anyone familiar with this kind of behaviour?
>>
>> The object ignite implements for httpSession is *WebSessionV2*.
>>
>> Regards,
>>
>>
>> Biswajeet *Rout*
>>
>>
>> Dtix-DELPHI
>>
>>
>> O 181 361 7630
>> M 970 334 9977
>>
>> <http://www.facebook.com/verizon>   <http://twitter.com/verizon>
>> <http://www.linkedin.com/company/verizon>
>> <http://www.instagram.com/verizon>
>>
>>

Re: Web session httpSession issue.

Posted by "Rout, Biswajeet" <bi...@verizon.com>.
Hi,

Any one from Ignite team can clarify my doubt please?

Regards,


Biswajeet *Rout*


Dtix-DELPHI


O 181 361 7630
M 970 334 9977

<http://www.facebook.com/verizon>   <http://twitter.com/verizon>
<http://www.linkedin.com/company/verizon>
<http://www.instagram.com/verizon>



On Thu, Jan 30, 2020 at 1:03 PM Rout, Biswajeet <bi...@verizon.com>
wrote:

> Hi,
>
> I have used Web session clustering. The web session is clustered
> across the nodes, I am happy about that. But there is one issue I found.
>
> In my application I store *UserInfo* object inside the httpSession object
> inside one of my spring controllers. When my view gets loaded( which is a *JSP
> page*) I try feting the *UserInfo* from the httpSession object which I
> get as *null*(I do not find any parameter on the same key name as
> userInfo I set before). Where as I reload the URL again, it finds the
> UserInfo inside the httpSession object.
>
> So why did it not find/set the object at first place?
> Is anyone familiar with this kind of behaviour?
>
> The object ignite implements for httpSession is *WebSessionV2*.
>
> Regards,
>
>
> Biswajeet *Rout*
>
>
> Dtix-DELPHI
>
>
> O 181 361 7630
> M 970 334 9977
>
> <http://www.facebook.com/verizon>   <http://twitter.com/verizon>
> <http://www.linkedin.com/company/verizon>
> <http://www.instagram.com/verizon>
>
>