To test I commented out the redirect binding, so that is not a problem.
Just a summery:
If I do the login without having a session, and then I add some products, everything works. (no more sessions are created).
If I add some product (so create a session without a user) and then I try the login there is the problem.
About the ajax container.. the first session (add a product ) is created in this way:
ShowProduct page: addToCart link:
addToCart: WOHyperlink {
string = "Aggiungi al carrello";
actionClass = "DirectAction";
directActionName = "addToCart";
?product = product.prodID;
}
public WOActionResults addToCartAction() {
//return boolean.. if false.. what to do??
if (((Session)session()).addProductToCart((String) request().formValueForKey("product")))
return pageWithName(ShowCart.class);
else
return null;
}
So.. there is no Ajax container here... but.. the ShowCart page has some ajax container..
I attach the entire project.. so you can have all the java.. (...something is in italian, something in english..)
(I can't attach.. I put a link to it)