I'm not sure what is your use case.

If you need some value at client side/javascript, and you are using
JavaServerPages (JSP), you could try (quick and dirty):

<script>
var myclientsidevalue = '<%= session.getValue("myserversidename") %>'; // I
don't remember the exact notation, method call, etc..
</script>

there are other "better" solution (using expression language instead of <%=
%>.

But really, I didn't grasp your use case, and real/final problem to solve.
And below question is out of topic in this list, I guess.

On Wed, Dec 12, 2012 at 10:23 AM, ayaz ali <[email protected]> wrote:

> is it possibe to acess session from javascript?
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to