Session management

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

Session management

dtrussardi@tiscali.it
Hello All,
 
i work with VW7.4.1 and seaside support.
 
 
When i open a new web session i'm interested to open link to database and other link,
 
and  when the Session is close or Expire Seconds is trigger i'm interested to intercept it and close my open link.
 
What do i do ?
 
I have create MyWASessiona subclass of WASession with start: and unregistered method.
I use it to initialize MyWebApplication preferenceAt: #sessionClass put: MyWASession.
 
 
Question A:
 
Now when open the MyWebApplication the start: method work fine but i nedd to define my work first to call super start: aRequest.
 
        start: aRequest
           self halt.
           super start: aRequest
 
work fine
 
but:
    
        start: aRequest
          super start: aRequest
           self halt.
 
don't execute self halt.
 
It's all ok, or there is another solution to do it ?
 
 
Question B:
 
When the Session Expire Seconds is trigger my unregistered method is not intercepted.
And when i clic on Terminate action i have the same problem.
 
What i wrong ?
 
Because the MyWASession instances increasing?
What do i do to close they?
 
 
 
Any pointers would be greatly appreciated!

Thank,

Dario Trussardi Romano

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

Re: Session management

Lukas Renggli
> but:
>
>         start: aRequest
>           super start: aRequest
>            self halt.
>
> don't execute self halt.
>
> It's all ok, or there is another solution to do it ?

Yeah, this is fine. The #halt is never executed because #start:
triggers the rendering loop that never returns itself (this is where
continuations come into play).

> When the Session Expire Seconds is trigger my unregistered method is not
> intercepted.
> And when i clic on Terminate action i have the same problem.
>
> What i wrong ?
>
> Because the MyWASession instances increasing?
> What do i do to close they?

Old sessions are only pruned when they have timed-out and new ones are
created. So this doesn't happen too often. This is a FAQ, so check out
the mailing-list archive to get some more in-depth answers.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside