Hi All,

I have two folders in my www: test1/index.php and test2/index.php
code test1/index.php
PHP Code:
<?php
@session_start();
if(isset(
$_SESSION['name']) && $_SESSION['name'] != ''){
    echo 
"Name=" $_SESSION['name'];
} else {
    
$_SESSION['name'] = 'Foo';
}
?>
<html>
<head>
<script type="text/javascript">
function fun(){
    window.open("../test2/index.php","NewWindow", "width=600");
}
</script>
</head>
<body>
<input type="button" value="Click" onclick="fun();" />
</body>
</html>
Code in test2/index.php
PHP Code:
<?php
@session_start();
if(isset(
$_SESSION['name']) && $_SESSION['name'] != ''){
    echo 
"Name=" $_SESSION['name'];
} else {
    
$_SESSION['name'] = 'Bar';
}
?>
Through browser when accessing test1/index.php and clicking on 'Click' button,
o/p=> Name="Foo"

Is it possible
1) If I access test1, o/p=> Foo
2) If I access test2 (as clicking on 'Click' button), o/p=> Bar

Your help will be highly appreciated.

Thanks in advance.