Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Session DB values?

    I am trying to make a shopping cart. Old ones i have created I have
    stored product id's and prices in a cookie.

    Where can I find information on storing information in a database just
    for the session?

    OR, what is the best way to go about storing shopping cart information
    on my own?

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Jason Daly Guest

  2. Similar Questions and Discussions

    1. delete values base on user logon session
      Hi How do I delete the data in my table base on user logon session, so when it deleted the values will only delete the values base on who use logon..
    2. Session values in firefox browser
      Hi all, i am using ColdFusion MX when i open my site in Firefox it is working fine when i use a single window (Browser instance). If i use...
    3. Session variables contain no values
      Hi everybody. I'm experiencing strange problems with PHP session files: a user submits a form with UID and PWD. The next page checks these...
    4. Store values in session.item
      Hi, Are there any security issues related with storing data related to the users session in session.item ? Can i keep data in there with any risk...
    5. Size of session values array?
      Is there a way for my ISP to limit the size of the session values array? phpinfo() doesn't seem to give me that information, so I assume there is no...
  3. #2

    Default RE: Session DB values?

    I don't know if databases provide session variables, but ASP itself does

    Session("ItemID") = "xyz
    Session("ItemPrice") = 3.9

    I believe you can store session values in an array also. I may be wrong on this one, but I think that you could do something like this
    Session("ItemID")(0) = "xyz
    Session("ItemPrice")(0) = 3.9

    Session("ItemID")(1) = "abc
    Session("ItemPrice")(1) = 29.9

    Once that value is set you can refer to it on any page within your application. A couple of thing to remember, though -
    - Controlling how long a session lasts. I don't know what the default session length is, but I know you can change it to make it longer or shorter. Once the session terminates, those values will be lost
    - Having some sort of a logout process that would manually end the session. Session.Abandon should do it.
    MDW Guest

  4. #3

    Default RE: Session DB values?

    ASP Design Tips - Shopping Cart
    [url]http://www.bullschmidt.com/devtip-shoppingcart.asp[/url]

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139