Problem with array stored in a session

Results 1 to 2 of 2

Thread: Problem with array stored in a session

  1. #1
    Mark Guest

    Default Problem with array stored in a session

    I store an two-dimensional array to a session, but when I call that session variable again, I get isArray(Myarray) = false<BR><BR>Here&#039s a rough idea of what i&#039m doing:<BR><BR>On the First Visit to the page:<BR>dim myarray(5,5)<BR>set session("myarray") = myarray<BR><BR>Now click on form "Submit":<BR><BR>if ( Request.Form("cmdSubmit")="Submit" ) then<BR> myarray = session("myarray")<BR><BR> if isArray(myarray) then<BR> response.write("true")<BR> else<BR> response.write("false")<BR> end if<BR><BR>end if<BR><BR>Could someone please help me figure out what I&#039m doing wrong?<BR><BR>Thanks

  2. #2
    Alphabet Guest

    Default RE: Problem with array stored in a session

    Your &#039set myarray = ...&#039<BR>seems odd, and for sure if you set something one way, you have to set it the other.<BR><BR>I would say get rid of the set statement.<BR>When you have a problem and the problem is sytactic and/or it relates to very basic things, you might want to post a small exact example ie. how to reproduce the error. <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