Click here to Skip to main content
15,896,915 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Page updating Pin
Abhishek Sur15-Dec-09 4:02
professionalAbhishek Sur15-Dec-09 4:02 
QuestionASP .NET based centralized application !!! Pin
jeshra27915-Dec-09 0:20
jeshra27915-Dec-09 0:20 
AnswerRe: ASP .NET based centralized application !!! Pin
Dinesh Mani15-Dec-09 0:39
Dinesh Mani15-Dec-09 0:39 
GeneralRe: ASP .NET based centralized application !!! Pin
jeshra27915-Dec-09 3:39
jeshra27915-Dec-09 3:39 
GeneralRe: ASP .NET based centralized application !!! Pin
ESTAN15-Dec-09 12:01
ESTAN15-Dec-09 12:01 
QuestionHow to kill the session when user closes browser in asp.net 2.0 Pin
Raheem MA14-Dec-09 23:59
Raheem MA14-Dec-09 23:59 
AnswerRe: How to kill the session when user closes browser in asp.net 2.0 Pin
sashidhar15-Dec-09 0:03
sashidhar15-Dec-09 0:03 
AnswerRe: How to kill the session when user closes browser in asp.net 2.0 Pin
nainakarri15-Dec-09 0:12
nainakarri15-Dec-09 0:12 
Hi
You can call a javascript function on closing the browser. In that javascript function navigate to a logout page where you can then kill the session.

function AlertForBrowserClose()
       {

               var clicked=false;
               var winClosed=false;

               if (window.screenTop&&(window.screenTop>screen.height))
               {
                 winClosed=true;
               }
               if ((!clicked) && (!winClosed))
               {
                    //This part wiil be excuted OnClick of REFRESH
               }
               else if(window.event.clientY < 0 && window.event.clientX < 0)
               {
                      //This part wiil be excuted OnClick of BROWSER Close(X)

               var MCPageName =  document.location.href.substring
               (
               document.location.href.length , document.location.href.lastIndexOf('/') + 1
               );

                if(MCPageName!="MCAlerts.aspx")
                {
                    window.location.href = '../logout.aspx';
                    alert('Please use proper "LogOut" for next sessions!');
                }



               }

       }


I have used alert statement
alert('Please use proper "LogOut" for next sessions!');
Make sure that this alert is used. Else the logout page will not get hit and session soes not end.

Naina

GeneralRe: How to kill the session when user closes browser in asp.net 2.0 Pin
Raheem MA15-Dec-09 0:19
Raheem MA15-Dec-09 0:19 
GeneralRe: How to kill the session when user closes browser in asp.net 2.0 Pin
nainakarri15-Dec-09 0:26
nainakarri15-Dec-09 0:26 
GeneralRe: How to kill the session when user closes browser in asp.net 2.0 Pin
Dinesh Mani15-Dec-09 1:35
Dinesh Mani15-Dec-09 1:35 
Questionincreasing no of rows in gridview dynamically Pin
rosae61914-Dec-09 23:36
rosae61914-Dec-09 23:36 
AnswerRe: increasing no of rows in gridview dynamically Pin
sashidhar14-Dec-09 23:42
sashidhar14-Dec-09 23:42 
QuestionCreate toolbr for browser Pin
hemant.kaushal14-Dec-09 23:34
hemant.kaushal14-Dec-09 23:34 
AnswerRe: Create toolbr for browser Pin
sashidhar14-Dec-09 23:53
sashidhar14-Dec-09 23:53 
Questionautomatic email generation Pin
rummer14-Dec-09 20:33
rummer14-Dec-09 20:33 
AnswerRe: automatic email generation Pin
Ashfield14-Dec-09 20:58
Ashfield14-Dec-09 20:58 
AnswerRe: automatic email generation Pin
sashidhar15-Dec-09 0:08
sashidhar15-Dec-09 0:08 
GeneralRe: automatic email generation Pin
Abhijit Jana15-Dec-09 1:51
professionalAbhijit Jana15-Dec-09 1:51 
GeneralRe: automatic email generation Pin
sashidhar15-Dec-09 3:06
sashidhar15-Dec-09 3:06 
GeneralRe: automatic email generation Pin
Abhijit Jana15-Dec-09 20:24
professionalAbhijit Jana15-Dec-09 20:24 
GeneralRe: automatic email generation Pin
sashidhar15-Dec-09 20:34
sashidhar15-Dec-09 20:34 
GeneralRe: automatic email generation Pin
Ashfield15-Dec-09 4:24
Ashfield15-Dec-09 4:24 
GeneralRe: automatic email generation Pin
sashidhar15-Dec-09 4:48
sashidhar15-Dec-09 4:48 
QuestionSending Mail over Intranet Pin
.NET- India 14-Dec-09 20:01
.NET- India 14-Dec-09 20:01 

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.