Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Access a session variable??

    I have set a session variable in my asp code. I have some javascript code that runs on the server ('runat server' is specified). I want to access the session variable from within the javascript code. How do I do this?
    G

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Have you tried doing it like you would in VBScript? ie. ( Session("name")).

    Note the uppercase "S" in Session, remember jscript is case sensitive.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •