> 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.

The A4D/Ajax stuff is definitely something am looking forward in your
upcoming tutorial.

I'd really appreciate, If you could post a working code snipped of this Ajax
test for a expired session. Would probably give me a starting point for
doing other small things with Ajax to safe me the one or other page refresh.


Peter
 


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

Reply via email to