Passing Array to Session Variable Then back to Array 
Author Message
 Passing Array to Session Variable Then back to Array

In the first .asp page I'm passing an array to a session variable
-
session("security_token") = tok
-
tok being a simple array holding some string values.

In the following .asp page I try to retrieve the array from the session
variable into an array on the new page.  Both arrays are simply defined as
dim tok(15) and newtok(15) respectively
-
newtok = session("security_token")
-
When doing so I get a runtime error "800a000d" - "Type mismatch".

I need to keep the values in the session variable to be accessed by .asp
pages to confirm security privileges.

Any help would be appreciated.

Kris



Tue, 08 Oct 2002 03:00:00 GMT  
 Passing Array to Session Variable Then back to Array
Kris-
    Don't define the newtok variable as anything but a variant. I think this
is similar to the split function situation.
It doesn't seem to like typed variables.

Quote:
> In the first .asp page I'm passing an array to a session variable
> -
> session("security_token") = tok
> -
> tok being a simple array holding some string values.

> In the following .asp page I try to retrieve the array from the session
> variable into an array on the new page.  Both arrays are simply defined as
> dim tok(15) and newtok(15) respectively
> -
> newtok = session("security_token")
> -
> When doing so I get a runtime error "800a000d" - "Type mismatch".

> I need to keep the values in the session variable to be accessed by .asp
> pages to confirm security privileges.

> Any help would be appreciated.

> Kris



Tue, 08 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Splitting Session Variable into several variables (array?)

2. Passing a variant array from asp to a cls and back

3. Passing array from ASP (VBScript) to DLL and back

4. HELP: Using an Array passed back from a function

5. Passing names of arrays stored in session object to function

6. Copying a long array into a byte array and back

7. Copying a long array into a byte array and back

8. Copying a long array into a byte array and back

9. Copying a long array into a byte array and back

10. Copying a long array into a byte array and back

11. ASP - Array in Session Variable ? (JScript)

12. Session variables and Arrays

 

 
Powered by phpBB® Forum Software