Best way to logout

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

Best way to logout

Oleg Richards
Hello!

There is my another question:
I have my entrance task (SOEntrance). It just displays login  
component and if it answers not nil
calls main application component (SOMain). I would like to make a  
logout: Is it good to just do following
on SOMain logout method: self call: SOEntrance new.  It works, but is  
there a better way to do it. Is it safe to use
this way, because i think that my SOMain is waiting for answer from  
SOEntrance and will never get it. Can it be better to just
clean all session info and redirect to main page. If yes, how to do it?


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

Re: Best way to logout

Boris Popov, DeepCove Labs (SNN)
Re: [Seaside] Best way to logout

self session expire

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Thu Sep 06 08:22:45 2007
Subject: [Seaside] Best way to logout

Hello!

There is my another question:
I have my entrance task (SOEntrance). It just displays login 
component and if it answers not nil
calls main application component (SOMain). I would like to make a 
logout: Is it good to just do following
on SOMain logout method: self call: SOEntrance new.  It works, but is 
there a better way to do it. Is it safe to use
this way, because i think that my SOMain is waiting for answer from 
SOEntrance and will never get it. Can it be better to just
clean all session info and redirect to main page. If yes, how to do it?


Cheers, Oleg
_______________________________________________
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: Best way to logout

Oleg Richards
In reply to this post by Oleg Richards
Ok, i understand that self session expire is good way to logout... But
why after i am clicking "logout" link with this action i can return  
back to the main page from login page.
How can i erase everything and stop back button from working?

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

RE: Re: Best way to logout

Ramon Leon-5
 
>
> Ok, i understand that self session expire is good way to
> logout... But why after i am clicking "logout" link with this
> action i can return back to the main page from login page.
> How can i erase everything and stop back button from working?
>
> Cheers, Oleg

You can't, but if they hit back, and attempt to do anything, they'll get a
message saying the page is expired.  You can't control the web browers
cache, nor should you attempt to.

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