Log Out Without Expiring

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

Log Out Without Expiring

Sigrid E. Mortensen
I am using Seaside 2.8.

I would like to do something different when a page expires than when  
the user logs out.  In the first case, I'd like to put up a page that  
tells the user the page has expired, and in the latter case, I'd like  
to just redirect to the log-in page.  In the latter case, the session  
should also be expired, to make it necessary to log in, but it should  
not tell the user that the session has expired.

What is the easiest way to do this?

What I have tried is to create my own subclass of WAApplication and  
override the #handleExpiredRequest: method, wherein I replace the line
        self redirectResponseFor: url
with
        self redirectHandler redirectPageExpiredTo: url.

This puts up the notification when the page expires.  However, since I  
am using
        self session expire
on a log-out, I get the same notification when the user logs out.

If I leave in the original code, an expired page and the log-out both  
go back to my log-in page with no notification.

Seems I can do one or the other, but not both.

I have considered making my own Session class, but can't figure out  
how to access it, since self session returns nil in an inspector.

Thanks for any help,
-- Sigrid.

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

Re: Log Out Without Expiring

John McKeon
Hello Sigrid

On Mon, Apr 13, 2009 at 1:18 PM, Sigrid E. Mortensen <[hidden email]> wrote:
I am using Seaside 2.8.

I have considered making my own Session class, but can't figure out how to access it, since self session returns nil in an inspector.

You can configure your application to use your own subclass of WASession through the configuration screen in the web browser. Just click the override link next and select your Session class.

Cheers
Johnny


Thanks for any help,
-- Sigrid.

_______________________________________________
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