Click here to Skip to main content
15,919,479 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: SqlDataSource multiple fiters Pin
JacquesDP13-Aug-07 1:46
JacquesDP13-Aug-07 1:46 
QuestionSession end does not fire Pin
soneliso12-Aug-07 23:26
soneliso12-Aug-07 23:26 
AnswerRe: Session end does not fire Pin
N a r e s h P a t e l13-Aug-07 0:29
N a r e s h P a t e l13-Aug-07 0:29 
GeneralRe: Session end does not fire Pin
soneliso13-Aug-07 0:39
soneliso13-Aug-07 0:39 
GeneralRe: Session end does not fire Pin
N a r e s h P a t e l13-Aug-07 0:45
N a r e s h P a t e l13-Aug-07 0:45 
AnswerRe: Session end does not fire Pin
Michael Sync13-Aug-07 6:09
Michael Sync13-Aug-07 6:09 
QuestionPostBackUrl Pin
slSoftware12-Aug-07 23:25
slSoftware12-Aug-07 23:25 
AnswerRe: PostBackUrl Pin
N a r e s h P a t e l13-Aug-07 0:33
N a r e s h P a t e l13-Aug-07 0:33 
GeneralRe: PostBackUrl Pin
slSoftware13-Aug-07 1:11
slSoftware13-Aug-07 1:11 
QuestionNeed really Urgent Plz (Next and Previous Button in Media Player) Pin
Abubakarsb12-Aug-07 22:59
Abubakarsb12-Aug-07 22:59 
QuestionError when publishing Pin
samerh12-Aug-07 22:51
samerh12-Aug-07 22:51 
AnswerRe: Error when publishing Pin
N a r e s h P a t e l13-Aug-07 0:47
N a r e s h P a t e l13-Aug-07 0:47 
GeneralRe: Error when publishing Pin
samerh13-Aug-07 1:14
samerh13-Aug-07 1:14 
GeneralRe: Error when publishing Pin
N a r e s h P a t e l13-Aug-07 1:41
N a r e s h P a t e l13-Aug-07 1:41 
Questiondata grid with custom Paging Pin
sanjay_tutu12-Aug-07 22:27
sanjay_tutu12-Aug-07 22:27 
QuestionhttpModule VS Page_Load Pin
But_Im_a_Lady12-Aug-07 21:58
But_Im_a_Lady12-Aug-07 21:58 
AnswerRe: httpModule VS Page_Load Pin
N a v a n e e t h12-Aug-07 22:47
N a v a n e e t h12-Aug-07 22:47 
GeneralRe: httpModule VS Page_Load Pin
But_Im_a_Lady13-Aug-07 0:25
But_Im_a_Lady13-Aug-07 0:25 
Questionshopping card Pin
AnhTin12-Aug-07 21:55
AnhTin12-Aug-07 21:55 
AnswerRe: shopping card Pin
Christian Graus13-Aug-07 0:10
protectorChristian Graus13-Aug-07 0:10 
GeneralRe: shopping card [modified] Pin
AnhTin13-Aug-07 18:43
AnhTin13-Aug-07 18:43 
Questioni am using remoting on same system then its work properly Pin
Piyush Vardhan Singh12-Aug-07 21:28
Piyush Vardhan Singh12-Aug-07 21:28 
AnswerRe: i am using remoting on same system then its work properly Pin
Venkatesh Mookkan12-Aug-07 22:21
Venkatesh Mookkan12-Aug-07 22:21 
GeneralRe: i am using remoting on same system then its work properly Pin
Piyush Vardhan Singh13-Aug-07 0:02
Piyush Vardhan Singh13-Aug-07 0:02 
QuestionLogout Automatically Pin
Abubakarsb12-Aug-07 21:17
Abubakarsb12-Aug-07 21:17 
Hi,

I posted this kind of thread a few days before as well although I got replies but unfortunately my problem is still there so here I am repeating my question. My requirement is that when user closes the browser window it should logout autmatically.
The problem is that 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?
I have found following code in commonMaster page.

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, "/");
}
}

If anybody knows about it please help me! Thanks. Bye.

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.