Query : Regarding Browser Session

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Query : Regarding Browser Session

Sumit Pandit-3
Hello Devs,

If user close the browser by X sign, then is it possible to call a service at that time, that will save all session data in database before closing it.

Thanks in Advance
Sumit Pandit





Reply | Threaded
Open this post in threaded view
|

Re: Query : Regarding Browser Session

Abhishake Agarwal
JavaScript  (ajax) is definitely needed for this. but catching the 'X'
event of browser  incompatible on different browser and has many issues.

On Thu, Dec 18, 2008 at 5:45 PM, Sumit Pandit
<[hidden email]>wrote:

> Hello Devs,
>
> If user close the browser by X sign, then is it possible to call a service
> at that time, that will save all session data in database before closing it.
>
> Thanks in Advance
> Sumit Pandit
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Query : Regarding Browser Session

Bilgin Ibryam
In reply to this post by Sumit Pandit-3

On Dec 18, 2008, at 2:15 PM, Sumit Pandit wrote:

> Hello Devs,
>
> If user close the browser by X sign, then is it possible to call a  
> service at that time, that will save all session data in database  
> before closing it.
>
> Thanks in Advance
> Sumit Pandit

Hi Sumit,

you can use HttpSessionListener interface for this. For an example  
check CartEventListener.java

HTH
Bilgin