Click here to Skip to main content
15,912,578 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Check Browser Close Event Pin
Abubakarsb7-Aug-07 21:52
Abubakarsb7-Aug-07 21:52 
GeneralRe: Check Browser Close Event Pin
Sonia Gupta7-Aug-07 22:33
Sonia Gupta7-Aug-07 22:33 
AnswerRe: Check Browser Close Event Pin
N a v a n e e t h7-Aug-07 22:52
N a v a n e e t h7-Aug-07 22:52 
GeneralRe: Check Browser Close Event Pin
Vasudevan Deepak Kumar7-Aug-07 23:29
Vasudevan Deepak Kumar7-Aug-07 23:29 
GeneralRe: Check Browser Close Event Pin
N a v a n e e t h7-Aug-07 23:39
N a v a n e e t h7-Aug-07 23:39 
GeneralRe: Check Browser Close Event Pin
Abubakarsb7-Aug-07 23:48
Abubakarsb7-Aug-07 23:48 
GeneralRe: Check Browser Close Event Pin
N a v a n e e t h7-Aug-07 23:54
N a v a n e e t h7-Aug-07 23:54 
GeneralRe: Check Browser Close Event Pin
Abubakarsb10-Aug-07 5:02
Abubakarsb10-Aug-07 5:02 
Sorry guys! I was really busy with other parts of my project. Regarding to your question

"How you are checking this ? That's what I asked are you storing any values to identify whether user is online ? "

The thing is I am new in Visual Studio 2005 (Asp.net 2.0) and a developer already made this, I am just updating it. I don't have any idea how new login system works in VS2005. I really don't know how he is storing or checking that whether user is login or not?

He made a commonMaster page and I have found a check please check code below, may be it helps you to understand my problem, if you still need more please don't hasitate. I want to fix this soon. Thanks.

if (Properties.IsLoggedIn)
{
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];
FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);

MembershipUser mu = Membership.GetUser();
Properties.EndUserGUID = mu.ProviderUserKey.ToString().ToUpper();

DateTime expiration = authTicket.Expiration.AddSeconds(-90);
if (expiration < DateTime.Now)
{
mu.LastLoginDate = DateTime.Now;
Membership.UpdateUser(mu);
FormsAuthentication.SetAuthCookie(Context.User.Identity.Name, true, "/");
}
}
QuestionSystem.Resources.MissingManifestResourceException Pin
sankar.K7-Aug-07 20:32
sankar.K7-Aug-07 20:32 
QuestionTransfer data from CSV to Sql Server 2005!! Pin
shweta@syscom7-Aug-07 20:28
shweta@syscom7-Aug-07 20:28 
AnswerRe: Transfer data from CSV to Sql Server 2005!! Pin
sulabh20207-Aug-07 23:19
sulabh20207-Aug-07 23:19 
AnswerRe: Transfer data from CSV to Sql Server 2005!! Pin
sulabh20207-Aug-07 23:29
sulabh20207-Aug-07 23:29 
GeneralRe: Transfer data from CSV to Sql Server 2005!! Pin
shweta@syscom8-Aug-07 0:49
shweta@syscom8-Aug-07 0:49 
QuestionTreeview control Pin
Brendan Vogt7-Aug-07 20:06
Brendan Vogt7-Aug-07 20:06 
QuestionRequirement in Drop down list Pin
Hari_10107-Aug-07 19:54
Hari_10107-Aug-07 19:54 
AnswerRe: Requirement in Drop down list Pin
Christian Graus7-Aug-07 20:09
protectorChristian Graus7-Aug-07 20:09 
GeneralRe: Requirement in Drop down list Pin
Hari_10107-Aug-07 20:12
Hari_10107-Aug-07 20:12 
AnswerRe: Requirement in Drop down list Pin
Michael Sync7-Aug-07 20:11
Michael Sync7-Aug-07 20:11 
GeneralRe: Requirement in Drop down list Pin
Hari_10107-Aug-07 20:16
Hari_10107-Aug-07 20:16 
GeneralRe: Requirement in Drop down list Pin
Christian Graus7-Aug-07 20:33
protectorChristian Graus7-Aug-07 20:33 
GeneralRe: Requirement in Drop down list Pin
Michael Sync7-Aug-07 22:15
Michael Sync7-Aug-07 22:15 
GeneralRe: Requirement in Drop down list Pin
Hari_10107-Aug-07 22:21
Hari_10107-Aug-07 22:21 
GeneralRe: Requirement in Drop down list Pin
Hari_10108-Aug-07 1:52
Hari_10108-Aug-07 1:52 
GeneralRe: Requirement in Drop down list Pin
Michael Sync8-Aug-07 7:42
Michael Sync8-Aug-07 7:42 
GeneralRe: Requirement in Drop down list Pin
Hari_10108-Aug-07 20:49
Hari_10108-Aug-07 20:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.