Using Session Variables VbScript - var = session("session_variable_name")
JavaScript On Clientside create Javascript variable and initialise them with Session Variables values. javascript --- var sessionvar1 vbscript <% response.write "sessionvar1 = " & session("session_variable_name1") %> javascript - sessionvar1 will now have the value of your session_variable_name1 But you can directly use the Session Variables in with <%%> tag in HTML. Setting Session Variables vbscript session("session_variable_name") = value Javascript You cant set the Session Variables on Client side without calling a Server-side Script. For Asynchronous calls you can use XMLHTTP Object to call your ASP Page and pass your session values as parameters to this Page. This ASP Page will set Session variables in vbscript. On 11/14/05, girish nehte <[EMAIL PROTECTED]> wrote: > > Hello > Friends I want to use & set session variables in my functions which are > written in vb scripr or java script, so please tell me how I can use and set > session variables in java script as well as VB script. please reply me soon > it is urgent. > Thanks > > > --------------------------------- > Enjoy this Diwali with Y! India Click here > > [Non-text portions of this message have been removed] > > > > > > > > Yahoo! Groups Links > > > > > > > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/