Session.Contents

Results 1 to 5 of 5

Thread: Session.Contents

  1. #1
    Join Date
    Dec 1969
    Posts
    109

    Default Session.Contents

    What am I doing wrong?! The following code produces this error:<BR><BR>"Microsoft VBScript runtime error &#039 800a01b6&#039 <BR>Object doesn&#039t support this property or method: &#039Session.Contents&#039 <BR>/sessiontest.asp, line 6 "<BR><BR>&#060;%@ Language="VBScript" &#037;&#062;<BR>&#060;html><BR>&#060;head>&#060;ti tle>&#060;/title>&#060;/head><BR>&#060;body><BR>&#060;%<BR>For Each strItem In Session.Contents<BR> Response.Write(Session.Contents(strItem) & "<BR>")<BR>Next<BR>&#037;&#062;<BR>&#060;/body><BR>&#060;/html><BR><BR>Thanks!<BR><BR><BR>Oliver

  2. #2
    Ian Stallings Guest

    Default RE: Session.Contents

    This code should work. What version<BR>of ASP are you using. Or what Webserver<BR>are you using?

  3. #3
    Join Date
    Dec 1969
    Posts
    109

    Default RE: Session.Contents

    Yes, it should work, which is why this is driving me nuts. ;)<BR><BR>Not sure if this is what you&#039re asking but these are the<BR>versions of asp.dll I could find on our server:<BR><BR>winnt/system32/inetsrv/asp.dll v4.02.0622<BR>winnt/system32/inetsrv/ASP/asp.dll v1.13.09.0<BR><BR>Web server is IIS4.<BR><BR><BR>Oliver

  4. #4
    Jay Goodier Guest

    Default RE: Session.Contents

    I was able to make it work by taking out the:<BR> & "<BR>") <BR>and making it all on one line: ))


  5. #5
    Join Date
    Dec 1969
    Posts
    109

    Default RE: Session.Contents

    Yes, my is one line too, it just didn&#039t paste properly. Anyway, the error is at line 6:<BR><BR>For Each strItem In Session.Contents<BR><BR>It doesn&#039t recognize Session.Contents as a collection.<BR><BR><BR>Oliver

Posting Permissions

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