I'm wondering if regenerating the session id after a successful login really a good practice and not just sort of a cargo cult behavior.
If I understand the theory correctly it should prevent session hijacking (or at least make it harder), but I can't really see that if someone could steal the pre-login session what would stop the phisher doing it again with the regenerated one.
I'm not focusing on Spring (I don't even use Java currently), I'm interested in the pros and cons.