DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search

You are not logged in.

Announcement

Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

#1 2010-09-27 10:39:58

LLAndy
New member

Session not carried over to new window with window.open

If I use window.open to open a new window, it opens a new tab in IE Tester, but the session isn't carried over. It also doesn't return a reference for the new window (tab) from window.open. Not a major bug for me, but one I could see causing some people problems.

OS: Windows 7 Ultimate 64 bit
IE Tester: v0.4.4
IE Tab: IE6 (Edit: Seems to happen in all of them actually)

Here's sample login php code that will let you see it in action. This code demonstrates both bugs. Just copy paste everything here into a file called logintest.php and browse to it in both ie6 and ie tester with ie6 tab (Click "Log In" then "Open in new window"):

<?php
session_start();
if (isset($_POST["login"])){
    if ($_POST["login"]==1) unset($_SESSION["login"]);
    elseif($_POST["login"]==0) $_SESSION["login"]=1;
}
if (!empty($_SESSION["login"])){
    $login=1;
    $loggedstr="Logged in";
}else{
    $login=0;
    $loggedstr="Not Logged in";
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title><?php echo($loggedstr); ?></title>
</head>
<body>
    Status:<br>
    <div style='border:1px solid #AAA;width:300px;height:20px;' id='statusdiv'><?php echo($loggedstr); ?></div>
    <form method='post'>
        <input type='hidden' name='login' value='<?php echo($login);?>'>
        <input type='submit' value='<?php if ($login==1) echo("Log Out");else echo("Log In");?>'>
    </form>
    <br><br>
    <input type='button' value='Open In New Window' onclick='winopen()'><br>
</body>
<script type='text/javascript'>
    function winopen(){
        wintest=window.open('logintest.php', '_blank');
        if (wintest) document.getElementById("statusdiv").innerHTML='Found new window reference';
        else document.getElementById("statusdiv").innerHTML='Missing new window reference';
    }
</script>
</html>

Last edited by LLAndy (2010-09-27 10:55:00)

Offline

 

#2 2010-09-27 12:03:08

fabrice
DebugBar Support

Re: Session not carried over to new window with window.open

Hi,

Yes, window.open is partially working so far on IETester and newly opened window reference is not returned by window.open

Offline