Hi,
Iwould like to do that. Is it possible because I can't do it?
in test.aspx file:
<body onunload="signo ut()">
in test aspx.cs
:
void private signout()
{
HttpContext.Cur rent.Cache.Remo ve(Session["usrName"].ToString());
Session["user"]=null;
Session["usrName"]=null;
FormsAuthentica tion.SignOut();
}
Is it possible to use C# function in onunload event.
Please could you tell me hoe to implement this. I should use the code in
signout() function when onunload event occures.
Thank you,
Viktor
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10.9.2004 a.