session collection problem

Results 1 to 2 of 2

Thread: session collection problem

  1. #1
    Join Date
    Dec 1969

    Default session collection problem

    can i make session collection<BR><BR>like<BR><BR>Session("user")("nam e") = "xxx"<BR>Session("user")("age") = "xxx"<BR>Session("user")("contact") = "xxx"<BR><BR>etc..<BR>if so how can we access all collection of Session("user")<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default No, you can't...

    A session variable can hold a single value. Period.<BR><BR>Why not just do<BR> Session("user_name") = "xxx"<BR> Session("user_age") = "xxx"<BR> Session("user_contact") = "xxx"<BR><BR>Ummm...I suppose I should say that the "single value" in a session variable *can* be an entire *ARRAY. See the ASPFAQs, category "Arrays", to see how to do that.<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