Are you talking about the session array?
session.php:
<?= json_encode($_SESSION); ?>
site.js:
new Request.JSON({
'url':'session.php',
'onSuccess':function(object) {
// do something with object
}
});
Would that do it?
On Jul 12, 3:58 am, Oskar Krawczyk <[email protected]> wrote:
> Create a PHP controller that *reads and returns* the session value. ie *
> /app/session/userdetails*, then just call this URL using *Request -
> *http://mootools.net/docs/core/Request/Request
>
> ___
>
> Oskar Krawczykhttp://nouincolor.com
>
>
>
> On Mon, Jul 12, 2010 at 10:53 AM, Sitthykun <[email protected]> wrote:
> > Hi,
>
> > I wanna read and write PHP's session with ajax, but I'm not sure it
> > can or not?
>
> > please help me