Re: Can I retrieve a stored php session variable from within a javascript function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your advice.
 I've heard of this technique before but wanted to know if there was
another way to do it from Javascript.

Regards 
Mauricio


On Sat, 2005-08-06 at 11:05, Burhan Khalid wrote:
> Mauricio Pellegrini wrote:
> > Hi , 
> > I wonder if it's possible to retrieve the value from a php session
> > variable from within a javascript function.
> > 
> > Does anyone have any ideas about this?
> 
> No. You cannot retrieve it, restore it, read it, send it, anything else.
> 
> You can write it from PHP :
> 
> echo '<script type="text/javascript">var sess = 
> '.$_SESSION['somevar'].'</script>';
> 
> But that's it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux