Hi list,
I am with the same problem described by Bernat in this post: http://groups.google.com/group/iliad/browse_thread/thread/ba5c3a50de2b87ed. Also, I readed the documentation-site about session manager, but stills not working and i cant understand how to fix. The problem is in ILSessionManager>>session ^self context session The "self context" isNil. My code: MyApplication >> dispatchOverride ^ self session usuario ifNil: [self loginContents] ifNotNil: [super dispatchOverride] LoginWidget >> login | usuario | usuario := Usuario findByLogin: self userName pwd: self pwd. usuario isNil ifTrue: [ "some code" ] ifFalse: [ self session announcer announce: (UsuarioLogado usuario: usuario). self redirectToIndex ]. The Login process works well. I put a anchor in my Application header MyApplication >> headerContents "some code" ul li a text: 'Sair'; accesskey: $S; action: [ self session logout ] and finally my ILSession children code: MySession >> logout self expire. self redirect. i tried override #onExpire MySession >> onExpire self usuario: nil. super onExpire. Any suggestion? I am using 0.9.1.1 version, on Pharo 1.2.1 Thank you, Thiago da S. Lino |
Hi Thiago and list,
I still haven't found out how to solve this problem. At one point I thought I did but I was wrong... Maybe we're doing something wrong in the logout process, for what I read we're doing exactly the same: expiring the session, setting the user to nil, redirecting the session. Also, my config is identical to yours: same Iliad version, same Pharo version.
Four eyes can see better than two, let's see if we can work this out! :)
2011/6/9 Thiago SL <[hidden email]> Hi list, |
Hi guys,
I'll take a look, try to see what's wrong. Cheers, Nico 2011/6/9 Bernat Romagosa <[hidden email]> Hi Thiago and list, |
Free forum by Nabble | Edit this page |