Click here to Skip to main content
15,895,667 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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.
Questionfiring an dropdownlist event Pin
kalyan_241612-Aug-07 21:02
kalyan_241612-Aug-07 21:02 
AnswerRe: firing an dropdownlist event Pin
N a v a n e e t h12-Aug-07 21:26
N a v a n e e t h12-Aug-07 21:26 
AnswerRe: firing an dropdownlist event Pin
ravi_chandra12-Aug-07 21:27
ravi_chandra12-Aug-07 21:27 
Questionhello everyone Pin
ballameharmurali12-Aug-07 21:01
ballameharmurali12-Aug-07 21:01 
AnswerRe: hello everyone Pin
N a v a n e e t h12-Aug-07 21:29
N a v a n e e t h12-Aug-07 21:29 
AnswerRe: hello everyone [modified] Pin
Nick.cheng.liu12-Aug-07 22:44
Nick.cheng.liu12-Aug-07 22:44 
QuestionProblem in CheckBoxList Pin
ballameharmurali12-Aug-07 20:47
ballameharmurali12-Aug-07 20:47 
AnswerRe: Problem in CheckBoxList Pin
N a r e s h P a t e l13-Aug-07 2:35
N a r e s h P a t e l13-Aug-07 2:35 
QuestionNested Controls Pin
sandrider12-Aug-07 20:46
sandrider12-Aug-07 20:46 
AnswerRe: Nested Controls Pin
Venkatesh Mookkan12-Aug-07 21:48
Venkatesh Mookkan12-Aug-07 21:48 
GeneralRe: Nested Controls [modified] Pin
sandrider13-Aug-07 13:48
sandrider13-Aug-07 13:48 
AnswerRe: Nested Controls [modified] Pin
John-ph13-Aug-07 0:01
John-ph13-Aug-07 0:01 
GeneralRe: Nested Controls [modified] Pin
sandrider13-Aug-07 13:56
sandrider13-Aug-07 13:56 
Questiondesign view problem????? Pin
Ron.S12-Aug-07 20:19
Ron.S12-Aug-07 20:19 
AnswerRe: design view problem????? Pin
N a r e s h P a t e l13-Aug-07 2:37
N a r e s h P a t e l13-Aug-07 2:37 
QuestionBULK INSERT WITH ADO.NET @sqlserver Pin
rajmani12-Aug-07 20:10
rajmani12-Aug-07 20:10 
AnswerRe: BULK INSERT WITH ADO.NET @sqlserver Pin
N a v a n e e t h12-Aug-07 21:33
N a v a n e e t h12-Aug-07 21:33 

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.