Click here to Skip to main content
15,887,485 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: A FIRE FOX CODING PROBLEMS Pin
helpmepeople17-Feb-09 3:19
helpmepeople17-Feb-09 3:19 
GeneralRe: A FIRE FOX CODING PROBLEMS Pin
SeMartens17-Feb-09 3:56
SeMartens17-Feb-09 3:56 
QuestionThe breakpoint will not be hit Pin
jp_pj_pjj16-Feb-09 17:15
jp_pj_pjj16-Feb-09 17:15 
QuestionHELP! Opening a .jar file in RAD. Need to view and edit the .class files. Pin
ToddW81416-Feb-09 6:15
ToddW81416-Feb-09 6:15 
QuestionSoap-Webservice Behavior Pin
ReadonlyMan16-Feb-09 4:23
ReadonlyMan16-Feb-09 4:23 
AnswerRe: Soap-Webservice Behavior Pin
Expert Coming16-Feb-09 9:46
Expert Coming16-Feb-09 9:46 
GeneralRe: Soap-Webservice Behavior Pin
ReadonlyMan16-Feb-09 19:27
ReadonlyMan16-Feb-09 19:27 
QuestionMultiple Session with IE7 and Mozilla Pin
Member 187278915-Feb-09 20:23
Member 187278915-Feb-09 20:23 
Hi guys,

I am currently developing an web applications. I am using cookies and session state. However i am having problems when users open a new tab.
Currently,
IE
Opening multiple tab : will caused session to be shared
Mozilla
opening multiple tab or opening a new Mozilla browser: The session will be shared.

What i am trying to achieved is prompt and stop users from opening multiple tab and find a way to stop Mozilla from sharing session for its browser.

I can't use cookiesless sessionstate due to the current design of the system.

i tried using this to solve the multiple tab problem, and also use a javascript code to capture the
"CTRL +N". Its kinda a dirty way to do things. But now mozilla is giving me problems regarding sharing the same session for the entire browsers. From random websites and forums, i found out that mozilla is storing all session into its cookies and by default it will only clear upon the expiry of the cookies, or if you force the cookies to be deleted.

String Val;
String CompareVal;
String CompareFolder;
//Check if its a new session
if (Session.IsNewSession.ToString() == "False")
{
    //Check if there is a previous page
    if (Request.ServerVariables["HTTP_REFERER"] != null)
    {
        //if Exist get exist previous page
        Val = Request.ServerVariables["HTTP_REFERER"].ToString();
        if (!String.IsNullOrEmpty(Val))
        {
            //Get Folder Name
            CompareFolder = Request.UrlReferrer.Segments[2].ToString();
            //Get File Name
            CompareVal =  Request.UrlReferrer.Segments[3].ToString();
            if (CompareFolder == "Main/")
            {
                if (CompareVal == "MainPage.aspx")
                {
                }
                else if (CompareVal == "TopPage.aspx")
                {
                }
                else
                {
                    //Redirect to Error Page
                    Response.Redirect(ResolveClientUrl("~/NoAcss.aspx"));
                }
            }
            else
            {
                //Redirect to Error Page
                Response.Redirect(ResolveClientUrl("~/NoAcss.aspx"));
            }
        }
    }
    else
    {
        //Redirect to Error Page
        Response.Redirect(ResolveClientUrl("~/NoAcss.aspx"));
    }
}

QuestionPlease help me How To Create Job Board ? Pin
IshtiaqueJ15-Feb-09 8:24
IshtiaqueJ15-Feb-09 8:24 
AnswerRe: Please help me How To Create Job Board ? Pin
Ashfield16-Feb-09 1:51
Ashfield16-Feb-09 1:51 
QuestionUsing external app on server Pin
TCHamilton13-Feb-09 6:30
TCHamilton13-Feb-09 6:30 
AnswerRe: Using external app on server Pin
jc.net15-Feb-09 8:55
jc.net15-Feb-09 8:55 
QuestionNeed help finding <script>debugger</script> and other commands Pin
2M2L13-Feb-09 6:12
2M2L13-Feb-09 6:12 
AnswerRe: Need help finding debugger and other commands Pin
Reelix25-Feb-09 19:49
Reelix25-Feb-09 19:49 
QuestionPlease Wait ... Pin
Fullmm13-Feb-09 1:18
Fullmm13-Feb-09 1:18 
QuestionRkLib.ExportData Exporting in Excel with heading in gujarati Pin
Dipal Raval13-Feb-09 0:59
Dipal Raval13-Feb-09 0:59 
Questionlet right table column fill-up window Pin
William Engberts13-Feb-09 0:36
William Engberts13-Feb-09 0:36 
Questionvery "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Alaric_12-Feb-09 6:16
professionalAlaric_12-Feb-09 6:16 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 6:53
sitebuilderShog912-Feb-09 6:53 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Alaric_12-Feb-09 7:30
professionalAlaric_12-Feb-09 7:30 
AnswerRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 7:39
sitebuilderShog912-Feb-09 7:39 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Alaric_12-Feb-09 8:43
professionalAlaric_12-Feb-09 8:43 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 8:47
sitebuilderShog912-Feb-09 8:47 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
led mike12-Feb-09 7:38
led mike12-Feb-09 7:38 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 7:39
sitebuilderShog912-Feb-09 7:39 

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.