Re: Can I retrieve a stored php session variable from within a javascript function?
| From: | Burhan Khalid | Date: | Sat, 06 Aug 2005 14:05:17 +0000 |
| Subject: | Re: Can I retrieve a stored php session variable from within a javascript function? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220139@lists.php.net to get a copy of this message | ||
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.