Jump to content

[SOLVED] $_session in pop up windows


corillo181

Recommended Posts

that is the problem there is no code.

 

i have a

index.php

<?php
session_start();
$_SESSION['name'] = 'josh';
?>
<a href="#" onclick="window.open('main.php','new window','width=300,height=250')" >new window</a>

 

now when the person clicks on the new window i have this

 

main.php

<?php
session_start();
print_r($_SESSION);
?>

 

the out put is

 

Array()

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.