Last post Apr 12, 2011 05:57 AM by sirdneo
Apr 12, 2011 03:56 AM|AnujAngooral|LINK
I am new to .net, i am facing some problem in session_end event.Actually i am creating one chat application in which owner(Support user) can chat with multiple users(clients).For this i am poping new windows for the owner,so that owner
can chat with different clients.On this popup window i am having one button to close the chat,which calls a function on aspx.cs page which calls session.abandon() function.After this it calls Session_End funtion.
My problem is that once the session_end ends,it automaticaly calls this method again and again, i dnt know why...
Apr 12, 2011 05:40 AM|DarrellNorton|LINK
Session.Abandon() calls Session_End, but it does so from a worker process, so there may be a delay between the two. If you call Session.Abandon(), you should not call Session_End.
Apr 12, 2011 05:57 AM|sirdneo|LINK
When you call Session.Abandon(), it deletes all the values in session and then calls Session_End internally. So you do not have to call Session_End explicitly. It will be called automatically when you call Session.Abandon().