David's idea is on the right track for the pre-expiration warning. You use 
Active4D to write some Javascript that shows an alert using window.setTimeout.

As for redirecting after the session has expired, if you want to be 
*absolutely* sure the session has expired, you would have to use Ajax to 
communicate with the server, for example you would request 
/session_check?id=<session id>, which would return JSON with a boolean telling 
you if the session has expired or not. But you would have to be sure to remove 
the session cookie from the request, otherwise that request would renew the 
session.

On Oct 11, 2012, at 5:15 PM, Peter Gutbrod <[email protected]> wrote:

> Has anyone a recommendation how to generate a javascript alert about a
> minute before the A4D session expires and automatically send a redirect
> immediately after the session has expired?
> 
> Found a jquery plugin for ASP sessions but don't know whether it will work
> with A4d.
> 
> Peter
> 
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

Regards,

   Aparajita

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to