Hi,
Is my understanding correct that based on certain criteria you want to switch an anonymous session into an authenticated session of a different user?
Technically it should be possible (wrap the HttpRequest and inject a different session), but that's a lot of of work to make it right in all circumstances.
What do you want to achieve with that? I am quite sure that there might be a simpler way to solve your requirement.
Jörg