How to deal with expired sessions on Ajax callbacks

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

How to deal with expired sessions on Ajax callbacks

Alexandre Paes
Hi seasiders,

Does anyone have any process of dealing with expired sessions on Ajax
callbacks? This is very annoying when the session expires but the
application is still open on the browser, the client is left without the
functionality and without any insight into why the application is not
responding.


Cheers,

Alex Paes

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: How to deal with expired sessions on Ajax callbacks

Boris Popov, DeepCove Labs (SNN)
SUAjax>>onExpiry: anObject
 self onStatus: 403 do: anObject

(html updater)
 onExpiry: html javascript refresh;
 ...

I also overrode #evaluator, #periodical, #request and #updater on my
render canvas class to set default handlers for expiry and errors so I
wouldn't have to specify them every time.

Hope this helps,

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Alexandre Paes
> Sent: Friday, November 02, 2007 10:50 AM
> To: Seaside - general discussion
> Subject: [Seaside] How to deal with expired sessions on Ajax callbacks
>
> Hi seasiders,
>
> Does anyone have any process of dealing with expired sessions on Ajax
> callbacks? This is very annoying when the session expires but the
> application is still open on the browser, the client is left without
the

> functionality and without any insight into why the application is not
> responding.
>
>
> Cheers,
>
> Alex Paes
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to deal with expired sessions on Ajax callbacks

keith1y
In reply to this post by Alexandre Paes
Alexandre Paes wrote:

> Hi seasiders,
>
> Does anyone have any process of dealing with expired sessions on Ajax
> callbacks? This is very annoying when the session expires but the
> application is still open on the browser, the client is left without the
> functionality and without any insight into why the application is not
> responding.
>
>
> Cheers,
>
> Alex Paes
>
>  

I add the "keep alive helper" to my application, this prevents the
session from expiring while the user has his/her browser window open.

This helper and its friends are in
http://www.squeaksource.com/Seaside28Jetsam

Keith
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: How to deal with expired sessions on Ajax callbacks

Boris Popov, DeepCove Labs (SNN)
Keith,

Yup, that's one way to do it if you don't have an actual requirement to
expire sessions for security reasons. In our case we actually wanted it
to expire and even have a little helper that will ping the server
without "touching" the session and throw browser back to the home page
when left unattended after some number of minutes. So handling expiry of
sessions on Ajax calls is important in some cases.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Keith Hodges
> Sent: Friday, November 02, 2007 11:18 AM
> To: Seaside - general discussion
> Subject: Re: [Seaside] How to deal with expired sessions on Ajax
callbacks
>
> Alexandre Paes wrote:
> > Hi seasiders,
> >
> > Does anyone have any process of dealing with expired sessions on
Ajax
> > callbacks? This is very annoying when the session expires but the
> > application is still open on the browser, the client is left without
the
> > functionality and without any insight into why the application is
not

> > responding.
> >
> >
> > Cheers,
> >
> > Alex Paes
> >
> >
>
> I add the "keep alive helper" to my application, this prevents the
> session from expiring while the user has his/her browser window open.
>
> This helper and its friends are in
> http://www.squeaksource.com/Seaside28Jetsam
>
> Keith
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to deal with expired sessions on Ajax callbacks

Carl Gundel
In reply to this post by keith1y
> This helper and its friends are in
> http://www.squeaksource.com/Seaside28Jetsam

The link seems to be broken.  :-/

-Carl Gundel
http://www.runbasic.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: How to deal with expired sessions on Ajax callbacks

Boris Popov, DeepCove Labs (SNN)
http://www.squeaksource.com/Jetsam.html

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Carl Gundel
> Sent: Friday, November 02, 2007 11:23 AM
> To: Seaside - general discussion
> Subject: Re: [Seaside] How to deal with expired sessions on Ajax
callbacks

>
> > This helper and its friends are in
> > http://www.squeaksource.com/Seaside28Jetsam
>
> The link seems to be broken.  :-/
>
> -Carl Gundel
> http://www.runbasic.com
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: How to deal with expired sessions on Ajax callbacks

Alexandre Paes
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Hi Boris,

thanks for your answer, that did solve my problem. My thanks to Keith as
well, but in this case and for security reasons i really need to expire
the sessions, just didn't feel correct to leave the application
unresponsive and Boris tip managed to solve that.

Once again, thanks everyone for the help.


Cheers,

Alex Paes

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: How to deal with expired sessions on Ajax callbacks

Sebastian Sastre-2
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Very interesting Boris. And thanks for the tip in
...
onExpiry: html javascript refresh;
...

Instead of overriding the canvas I'll use it in my updater
builder/customizer. Very useful, it's a good one I'm using it now.

        thanks again,

Sebastian Sastre

 

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Boris Popov
> Enviado el: Viernes, 02 de Noviembre de 2007 15:21
> Para: Seaside - general discussion
> Asunto: RE: [Seaside] How to deal with expired sessions on
> Ajax callbacks
>
> Keith,
>
> Yup, that's one way to do it if you don't have an actual
> requirement to expire sessions for security reasons. In our
> case we actually wanted it to expire and even have a little
> helper that will ping the server without "touching" the
> session and throw browser back to the home page when left
> unattended after some number of minutes. So handling expiry
> of sessions on Ajax calls is important in some cases.
>
> Cheers!
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> [hidden email]
>
> CONFIDENTIALITY NOTICE
>
> This email is intended only for the persons named in the
> message header. Unless otherwise indicated, it contains
> information that is private and confidential. If you have
> received it in error, please notify the sender and delete the
> entire message including any attachments.
>
> Thank you.
>
> > -----Original Message-----
> > From: [hidden email] [mailto:seaside-
> > [hidden email]] On Behalf Of Keith Hodges
> > Sent: Friday, November 02, 2007 11:18 AM
> > To: Seaside - general discussion
> > Subject: Re: [Seaside] How to deal with expired sessions on Ajax
> callbacks
> >
> > Alexandre Paes wrote:
> > > Hi seasiders,
> > >
> > > Does anyone have any process of dealing with expired sessions on
> Ajax
> > > callbacks? This is very annoying when the session expires but the
> > > application is still open on the browser, the client is
> left without
> the
> > > functionality and without any insight into why the application is
> not
> > > responding.
> > >
> > >
> > > Cheers,
> > >
> > > Alex Paes
> > >
> > >
> >
> > I add the "keep alive helper" to my application, this prevents the
> > session from expiring while the user has his/her browser
> window open.
> >
> > This helper and its friends are in
> > http://www.squeaksource.com/Seaside28Jetsam
> >
> > Keith
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside