The session is working fine. During the ajax request i can read the session normally. But anything i write to it does not shows up in the next requests.
In all other scenario it works great.
I can reproduce this situation any time just by creating an empty project (rails 3.0.8) with an simple scaffold. Put an ajax request on the onload event (of, say, the index page) that calls any action of the controller (say the edit action).
If i write anything to the session on the index action i can read it in the edit action. But if i write to the session on the edit action (during the ajax call) then, the next time i hit the index action, it doesn't show what i wrote on the edit action. Very strange.
Btw, the me object is just a string.
Thanks