Hi Alberto, As you wrote it is enough to store something in the session. If you are storing the values before login, I think they are lost when the session is reinitialized on login.
It is definitely possible to write your own filter, or extend the LoginFilter to get what you want. Regards from Vienna, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:user-list-owner@magnolia- > cms.com] Im Auftrag von Alberto Giovannone (via Magnolia Forums) > Gesendet: Dienstag, 22. April 2014 14:49 > An: Magnolia User List > Betreff: [magnolia-user] Re: Login Parameter and MgnlContext attribute > > Hi Federico, > I've just finished to add your suggestin to my code. I used this istruction : > "MgnlContext.setAttribute(key, value,Context.SESSION_SCOPE);" and if I try > to print the parameter in the same class wiht this : > MgnlContext.getAttribute(key,Context.SESSION_SCOPE)I obtain what I > want. When I try to print the value of the attribute with the same istruction > in a page the result is null. Null is what I print in my FormProcessor. > Are these istructions enough to save the attribute in the context or I have to > do something else like a "save" o a "release"? > Is it possible that I have to write my personal filter to add to the chain? > > Thank you for your help > > Regards from Milan > > Alberto Giovannone > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=8f5b9728-a3a8-44eb-ac08- > a97e358565e2 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
