I wrote some like that:
login('POST', []) ->
....
case Client:check_password(Req:post_param("password")) of
true ->
{redirect, [{controller, "chat"}, {action, "live"}], [{username, Name}, {gender, Gender}]};
....
end.
how to let the live action in chat controller receive the name and gender information? I wrote:
live('GET', [Req]) ->
Name=Req:post_param("username"),
....
{ok, [{username, Name}, {gender, Gender}]}
But it doesn't work, could anyone can help me>