Hi,
The application is using Form authentication.
in the Application_PreRequestHandlerExecute, I check if the context.current.
user.Identity has content, and the principle haven't been added (This event
will be called every time the user request page), if not added, I will call
"Session.Add("myPrincipal", pp);" ( this only need to be added once)
In the Session_end event, I called Session.abondon().
the problem is here:
after the Session_end event, the application will call the
Application_PreRequestHandlerExecute again, this time since the session
object just been cleared, it qualify for ""Session.Add("myPrincipal", pp);" ,
the session will be add back again !! , it is wrong since I want to exit the
application, how can I resolve it?
Thanks very much.
Jasmin
I remove the session_Id
from the session list at the Session_End event. after the Session_end
event , the application will call the Application_preRequestHandlerExecute
event again, this time, the session will be added again since the session_ID
has just been removed, it's ready to add...