Click here to Skip to main content
15,914,071 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: FindAndReplace() method in Word Document in C#.net Pin
Sandeep Mewara17-Jun-10 16:37
mveSandeep Mewara17-Jun-10 16:37 
AnswerRe: FindAndReplace() method in Word Document in C#.net Pin
koolprasad200317-Jun-10 20:04
professionalkoolprasad200317-Jun-10 20:04 
QuestionGet status of Remote windows service Pin
VC_RYK17-Jun-10 7:26
VC_RYK17-Jun-10 7:26 
AnswerRe: Get status of Remote windows service Pin
Sandeep Mewara17-Jun-10 16:35
mveSandeep Mewara17-Jun-10 16:35 
QuestionClick event of WebDayView in user control doesn't work Pin
Hardus Lombaard17-Jun-10 4:55
Hardus Lombaard17-Jun-10 4:55 
AnswerRe: Click event of WebDayView in user control doesn't work Pin
Sandeep Mewara17-Jun-10 6:44
mveSandeep Mewara17-Jun-10 6:44 
QuestionASP TextBox control showing "" (zero-length string) always Pin
Shailender K17-Jun-10 4:52
Shailender K17-Jun-10 4:52 
AnswerRe: ASP TextBox control showing "" (zero-length string) always Pin
Sandeep Mewara17-Jun-10 6:40
mveSandeep Mewara17-Jun-10 6:40 
GeneralRe: ASP TextBox control showing "" (zero-length string) always Pin
Shailender K17-Jun-10 19:45
Shailender K17-Jun-10 19:45 
GeneralRe: ASP TextBox control showing "" (zero-length string) always Pin
Sandeep Mewara17-Jun-10 19:47
mveSandeep Mewara17-Jun-10 19:47 
AnswerRe: ASP TextBox control showing "" (zero-length string) always Pin
T M Gray17-Jun-10 10:01
T M Gray17-Jun-10 10:01 
QuestionApplication object + logged in users Pin
Hemant Thaker17-Jun-10 2:51
Hemant Thaker17-Jun-10 2:51 
AnswerRe: Application object + logged in users Pin
Brij17-Jun-10 5:37
mentorBrij17-Jun-10 5:37 
See, when user log out by signout or timeout then session_end get called so user gets deleted, but when user close the browser then session_end is called only when the time out expires. So when user tries just after closing the browser and try to open the application then it shows as logged in but if try to access after the session timeout then would not show because session_end will be called after timeout.

So if you want to logout just after the browser close then you have to detect the browser close and logout the user by code. So for this do the following
- Make an temporary page
- On pageload of this remove the user from applicaton object
- Now on every page of your application detect the browser close and load this page as popup with 0 size and after loading close this popup.

The code for detecting the browser close is like
function CheckBrowser()
{
     // Check Browser Close [X] , Alt+F4 , File -> Close  
     if(window.event.clientX < 0 && window.event.clientY <0)
    {
          window.open("Temp.aspx", 
                "Operation",'left=12000,top=1200,width=10,height=1');
    }
}

here Temp.aspx is your temporary page.

For details about Application Objects you han have a look to one of my article
A walkthrough to Application State

QuestionRe: Application object + logged in users Pin
Hemant Thaker17-Jun-10 8:53
Hemant Thaker17-Jun-10 8:53 
GeneralRe: Application object + logged in users Pin
T M Gray17-Jun-10 11:09
T M Gray17-Jun-10 11:09 
Questionneed Intiligant algorithm Pin
eslam soliman17-Jun-10 2:00
eslam soliman17-Jun-10 2:00 
AnswerRe: need Intiligant algorithm Pin
R. Giskard Reventlov17-Jun-10 2:07
R. Giskard Reventlov17-Jun-10 2:07 
Questionhow to enter dataset value into the combobox as Selected Text Pin
Amit Spadez17-Jun-10 1:43
professionalAmit Spadez17-Jun-10 1:43 
AnswerRe: how to enter dataset value into the combobox as Selected Text Pin
shreekar17-Jun-10 1:59
shreekar17-Jun-10 1:59 
GeneralRe: how to enter dataset value into the combobox as Selected Text Pin
Amit Spadez17-Jun-10 2:05
professionalAmit Spadez17-Jun-10 2:05 
GeneralRe: how to enter dataset value into the combobox as Selected Text Pin
shreekar17-Jun-10 3:30
shreekar17-Jun-10 3:30 
QuestionDynamic grid problem Pin
Amit Patel198517-Jun-10 1:19
Amit Patel198517-Jun-10 1:19 
QuestionHttpContext.Current.Server.MapPath Pin
KishoreT17-Jun-10 0:03
KishoreT17-Jun-10 0:03 
AnswerRe: HttpContext.Current.Server.MapPath Pin
Jens Meyer17-Jun-10 1:18
Jens Meyer17-Jun-10 1:18 
AnswerRe: HttpContext.Current.Server.MapPath Pin
KishoreT17-Jun-10 2:02
KishoreT17-Jun-10 2:02 

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.