An authenticated session couldn't be created if there were no corresponding anonymous session.
Now the 4 possible situations (auth session already there or not, anonymous session already there or not) are checked for, and correctly handled.
Closes bug #3154.
Authored by: cboos 2006-05-16
Parent: [r3301]
Child: [r3303]