Tuesday, April 22, 2008

Grab asp, asp.net Sessions from javascript

window.onload = function() {
var a = 'Session["LoginStatus"]';
alert(a); }


place this in header surrounded by javascript tags sorry can't place them in here without it becoming code, also surround the Session["LoginStatus"] with tags you use to signify asp/ asp.net code, i bet this will work with php too though haven't tested.

0 Comments:

Post a Comment

<< Home