-
22 Mar 2008 2:37 AM #1
how to get session variable that php set it.
how to get session variable that php set it.
I set a session in a php with this code
<?php
ob_start();
session_start();
$x="sa";
session_register($x);
?>
and I want extJs to get a $_session[x] variable.
how to do this?it can do this?
-
24 Mar 2008 8:42 AM #2
same way you would get any other piece of data from the server.
either echo it into the php script's output, or fetch it separately via ajax.
-
24 Mar 2008 9:39 AM #3
js php
js php
in javascript
and js variables into php are done via ajax etcPHP Code:var yourJSvar = '<?php echo $yourPHPvar?>';


Reply With Quote