Session Variables

Results 1 to 2 of 2

Thread: Session Variables

  1. #1
    Join Date
    Dec 1969

    Default Session Variables

    If i have a page called default.asp <BR>and on that page i have the code to declare some session variables:<BR><BR> dim purchases(20,3)<BR> session("pur")=purchases<BR> session("ProductCount")=0<BR><BR>then in another page i try to change the values using the following code but it doesnt work. <BR><BR> pur(ProductCount,1) = 1<BR> pur(ProductCount,2) = "sometext"<BR> pur(ProductCount,3) = 2<BR> <BR> ProductCount = ProductCount + 1<BR><BR>plz tell me why

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQs, category Arrays

    The link to the ASPFAQs is at the top right corner of this very page.<BR><BR>Your question is in the category noted in the subject of this posting.<BR><BR>The ASPFAQs are your friends. Visit your friends often.<BR><BR>************<BR><BR>Read the FAQ on using arrays in Session and Application variables *VERY CAREFULLY*. You need to follow *EXACTLY* what it does.<BR><BR>For starters, you need to swap your usage of columns and rows in 2D arrays to match VBScript&#039;s (admittedly unusual) standards.<BR><BR>

Posting Permissions

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