[4DAF] Logoff vs. close window

View: New views
6 Messages — Rating Filter:   Alert me  

[4DAF] Logoff vs. close window

by Chase Setters-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

First off I am using the built in client. I have a couple methods that need
to run when a user logs out to clear variable's and such. I found when you
close the window On Web Connection is not hit at all which, I understand.
How do I work around and run my methods if a user closes the window of the
browser vs. logging out?

Thanks for the help.
**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: [4DAF] Logoff vs. close window

by Chip Scheide :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

not sure about the web interface - but for 4D forms - Form event - on
close box
or
when the window is opened last parameter is a method to run if the
close box is clicked

On Tue, 13 May 2008 15:59:38 -0500, Chase Setters wrote:
>
> First off I am using the built in client. I have a couple methods that need
> to run when a user logs out to clear variable's and such. I found when you
> close the window On Web Connection is not hit at all which, I understand.
> How do I work around and run my methods if a user closes the window of the
> browser vs. logging out?
**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: [4DAF] Logoff vs. close window

by Add Komoncharoensiri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chase,

In the 4DAF Client, there is an option to logout at the bottom left corner
of the screen. This option makes a "Logout" call to the backend so that the
backend database kills the session and all related attributes to the
session. When the user close the browser, the "Logout" call is never made.
However, your session will be kept for a number of mins before the 4DAF
Daemon clear it out of the system.

We will have a look at an Auto Logout option when the user close the Web
Browser.

Add K.


On 5/13/08 1:59 PM, "Chase Setters" <chase.setters@...> wrote:

> Hi all,
>
> First off I am using the built in client. I have a couple methods that need
> to run when a user logs out to clear variable's and such. I found when you
> close the window On Web Connection is not hit at all which, I understand.
> How do I work around and run my methods if a user closes the window of the
> browser vs. logging out?
>
> Thanks for the help.
> **********************************************************************
> The 4D v11 SQL Roadshow - coming to a city near you!
> http://www.4D.com/roadshow/index.html
>
> 4th Dimension Internet Users Group (4D iNUG)
> FAQ:  http://www.4d.com/support/faqnug.html
> Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> Post: mailto:4d_tech@...
> Options: https://lists.4d.com/mailman/listinfo/4d_tech
> **********************************************************************


**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: [4DAF] Logoff vs. close window

by Julien Feasson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chase,

You could add the attribute onunload to the body tag in the index.html  
page from the client. On unload your code should call the logout  
function to make sure the call is made to the 4D App, then you could  
call the methods you need to clear the variables.

Your modified body tag should look like that:
<body onunload="dax_bridge.logout();">

hth,
Julien.

On May 13, 2008, at 4:59 PM, Chase Setters wrote:

> Hi all,
>
> First off I am using the built in client. I have a couple methods  
> that need
> to run when a user logs out to clear variable's and such. I found  
> when you
> close the window On Web Connection is not hit at all which, I  
> understand.
> How do I work around and run my methods if a user closes the window  
> of the
> browser vs. logging out?
>
> Thanks for the help.
> **********************************************************************
> The 4D v11 SQL Roadshow - coming to a city near you!
> http://www.4D.com/roadshow/index.html
>
> 4th Dimension Internet Users Group (4D iNUG)
> FAQ:  http://www.4d.com/support/faqnug.html
> Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> Post: mailto:4d_tech@...
> Options: https://lists.4d.com/mailman/listinfo/4d_tech
> **********************************************************************

--
Julien Feasson
jfeasson@...

The 4D v11 SQL Roadshow – coming to a city near you!
<http://www.4d.com/roadshow/index.html>

**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: [4DAF] Logoff vs. close window

by Chase Setters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Julien,

Thanks! I'll try that.

Question. When upgrading the framework will I need to re-write the  
method or can I leave the index.html in place and not overwrite it?

Thanks,
Chase

On May 14, 2008, at 12:30 PM, Julien Feasson wrote:

> Hi Chase,
>
> You could add the attribute onunload to the body tag in the  
> index.html page from the client. On unload your code should call  
> the logout function to make sure the call is made to the 4D App,  
> then you could call the methods you need to clear the variables.
>
> Your modified body tag should look like that:
> <body onunload="dax_bridge.logout();">
>
> hth,
> Julien.



This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed.
If you have received this email in error please notify the email sender.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of Hermetic
Switch, Inc. Finally, the recipient should check this email and any
attachments for the presence of viruses. Hermetic Switch, Inc. accepts
no liability for any damage caused by any virus transmitted by this email.

**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: [4DAF] Logoff vs. close window

by Chase Setters-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry about the footer. Used the wrong email account.

On Wed, May 14, 2008 at 4:23 PM, Chase Setters <chase@...>
wrote:

> Julien,
>
> Thanks! I'll try that.
>
> Question. When upgrading the framework will I need to re-write the method
> or can I leave the index.html in place and not overwrite it?
>
> Thanks,
> Chase
>
> On May 14, 2008, at 12:30 PM, Julien Feasson wrote:
>
>  Hi Chase,
>>
>> You could add the attribute onunload to the body tag in the index.html
>> page from the client. On unload your code should call the logout function to
>> make sure the call is made to the 4D App, then you could call the methods
>> you need to clear the variables.
>>
>> Your modified body tag should look like that:
>> <body onunload="dax_bridge.logout();">
>>
>> hth,
>> Julien.
>>
>
>
**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************
LightInTheBox - Buy quality products at wholesale price