Click here to Skip to main content
15,903,388 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: navigation Pin
Aman Bhullar24-Dec-09 23:13
Aman Bhullar24-Dec-09 23:13 
GeneralRe: navigation Pin
mylogics24-Dec-09 23:22
professionalmylogics24-Dec-09 23:22 
AnswerRe: navigation Pin
keyur satyadev25-Dec-09 2:30
keyur satyadev25-Dec-09 2:30 
AnswerRe: navigation Pin
AmosDai28-Dec-09 15:06
AmosDai28-Dec-09 15:06 
QuestionCombobox in gridview Pin
Bob From Accountemps24-Dec-09 14:14
Bob From Accountemps24-Dec-09 14:14 
AnswerRe: Combobox in gridview Pin
Abhijit Jana24-Dec-09 18:20
professionalAbhijit Jana24-Dec-09 18:20 
GeneralRe: Combobox in gridview Pin
Bob From Accountemps25-Dec-09 9:57
Bob From Accountemps25-Dec-09 9:57 
Questionno ajax call after the session remove Pin
Pankaj Saha24-Dec-09 3:34
Pankaj Saha24-Dec-09 3:34 
hi, I have two MVC applications. I go to the MVC2 application from MVC1 application, I pass a token. When the MVC2 applications is loaded, its fetch the token and create the session. There are two button Logout and Save. I open MVC2 application in a IE browser and open the same application on the another tab. I just click the Logout button, which deletes all the sessions of the MVC2 application. Then I go to the first tab and click on the save button. Before saving the data, I simply check whether the session is exist or not, If session is exist then it will save the data otherwise redirect to the MVC1 application. But when I click on the Save button its shows the error "This page is accessing information that is not under its control. This proses a security risk. Do you want to continue?"

I have used following code to check the session in the save button


 btnSave.bind("click", function(event) {

        isSessionActive();

        SaveData()
}

function isSessionActive() {
    $.ajax({
        url:  "http://localhost/Home/IsSessionActive",
        type: "POST",
        data: {},
        success: function(result) {
            if (result !== "True") {

                window.location = "http://MVC1/Home";

            }
        }
    });
}



The server side code of IsSessionActive is

  public bool IsSessionActive()<br />
        {<br />
            if (Session == null || Session["AuthorizedToken"] == null)<br />
            {<br />
                return false;<br />
            }<br />
<br />
            return true;<br />
}



I have also put the debugger point in the IsSessionActive function, but after logout it does not debug. It show the same message. Does anyone have any idea, how to resolve this problem. Confused | :confused:

Pankaj

Questioncalender Pin
baselanfouqa24-Dec-09 1:25
baselanfouqa24-Dec-09 1:25 
AnswerRe: calender Pin
keyur satyadev24-Dec-09 1:29
keyur satyadev24-Dec-09 1:29 
AnswerRe: calender Pin
RajeevKumarSharma24-Dec-09 1:34
RajeevKumarSharma24-Dec-09 1:34 
GeneralRe: calender Pin
baselanfouqa24-Dec-09 2:25
baselanfouqa24-Dec-09 2:25 
GeneralRe: calender Pin
keyur satyadev24-Dec-09 2:28
keyur satyadev24-Dec-09 2:28 
GeneralRe: calender Pin
baselanfouqa24-Dec-09 2:45
baselanfouqa24-Dec-09 2:45 
GeneralRe: calender Pin
keyur satyadev24-Dec-09 18:25
keyur satyadev24-Dec-09 18:25 
AnswerRe: calender Pin
Russ-T24-Dec-09 2:37
Russ-T24-Dec-09 2:37 
GeneralRe: calender Pin
baselanfouqa24-Dec-09 2:51
baselanfouqa24-Dec-09 2:51 
QuestionMaster page issue Pin
RajeevKumarSharma24-Dec-09 0:26
RajeevKumarSharma24-Dec-09 0:26 
AnswerRe: Master page issue Pin
Abhishek Sur24-Dec-09 7:05
professionalAbhishek Sur24-Dec-09 7:05 
QuestionMail on every exception Pin
Rock Star.23-Dec-09 23:16
Rock Star.23-Dec-09 23:16 
AnswerRe: Mail on every exception Pin
adkalavadia23-Dec-09 23:32
adkalavadia23-Dec-09 23:32 
GeneralRe: Mail on every exception Pin
Rock Star.23-Dec-09 23:37
Rock Star.23-Dec-09 23:37 
GeneralRe: Mail on every exception Pin
adkalavadia23-Dec-09 23:42
adkalavadia23-Dec-09 23:42 
GeneralRe: Mail on every exception Pin
Rock Star.23-Dec-09 23:50
Rock Star.23-Dec-09 23:50 
GeneralRe: Mail on every exception Pin
adkalavadia23-Dec-09 23:57
adkalavadia23-Dec-09 23:57 

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.