Clearing UserState/Session

768 views
Skip to first unread message

Alfred Vink

unread,
Oct 2, 2012, 2:41:31 PM10/2/12
to joomla-de...@googlegroups.com

Hi Guys,

 

I want to use $app->getUserState and $app->setUserState to store some form data in case of reload, unsuccesfull validation etc.

 

I can set and get the data, but how do I clear it ?

 

Now it just refills the form every single time, even after a succesfull completion….

 

Alfred

Qson

unread,
Oct 2, 2012, 3:52:56 PM10/2/12
to joomla-de...@googlegroups.com
Joomla core components (JCobtrollerForm) use
->setUserState('key', null);

Try that!

//Qson

Reply all
Reply to author
Forward
0 new messages