Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASP session SSL

    I have created a site shopping cart in ASP.net.

    I am using ASP session object's SessionID on non SSL connection to track
    session.
    While adding products to cart DB I insert product and SessionID in table.
    All products and cart status pages are on non SSL connection.

    On checkout to get secure user information I shifted connection to SSL but
    when shifting to SSL, the SessionID changed (As is this is default behavior
    of IIS to prevent stealing SSL session).

    To get rid of this problem I shifted my all products and cart pages to SSL,
    now its working fine but I am not satisfied with this solution because it is
    not feasible to put all product pages (about 500 pages) to SSL. As I see
    while shopping with big companies sites i.e. Microsoft, Amazon etc. they
    change to SSL only in checkout page.

    How can I build it like that all pages remains in non SSL and only checkout
    pages should be on SSL. One solution may be to use custom cookies to track
    session but it may have the same problem of session hijacking/ session
    stealing.

    Any one please explain me what is the best way to create shopping cart with
    SSL, the ASP/ASP.net session or setting own cookies.

    Please explain in detail or refer some useful links.

    regards,
    Adil




    Adil Akram Guest

  2. Similar Questions and Discussions

    1. #16263 [Com]: session.start() create new empty session file and not resume existing session
      ID: 16263 Comment by: pat at burnttech dot com Reported By: kur at natur dot cuni dot cz Status: No Feedback...
    2. #25307 [Ver->Csd]: Crash when session.serialize_handler=wddx & session, post, get vars
      ID: 25307 Updated by: sniper@php.net Reported By: cristea at pntcd dot ro -Status: Verified +Status: ...
    3. #25307 [Ver]: Crash when session.serialize_handler=wddx & session, post, get vars
      ID: 25307 User updated by: cristea at pntcd dot ro Reported By: cristea at pntcd dot ro Status: Verified Bug Type: ...
    4. #25307 [NEW]: Crash when session.serialize_handler=wddx & session, post, get vars
      From: cristea at pntcd dot ro Operating system: any PHP version: 4CVS-2003-08-29 (stable) PHP Bug Type: Session related Bug...
  3. #2

    Default Re: ASP session SSL

    Adil Akram wrote:
    > I have created a site shopping cart in ASP.net.
    >
    > I am using ASP session object's SessionID on non SSL connection to
    > track session.
    > While adding products to cart DB I insert product and SessionID in
    > table. All products and cart status pages are on non SSL connection.
    >
    > On checkout to get secure user information I shifted connection to
    > SSL but when shifting to SSL, the SessionID changed (As is this is
    > default behavior of IIS to prevent stealing SSL session).
    >
    > To get rid of this problem I shifted my all products and cart pages
    > to SSL, now its working fine but I am not satisfied with this
    > solution because it is not feasible to put all product pages (about
    > 500 pages) to SSL. As I see while shopping with big companies sites
    > i.e. Microsoft, Amazon etc. they change to SSL only in checkout page.
    >
    > How can I build it like that all pages remains in non SSL and only
    > checkout pages should be on SSL. One solution may be to use custom
    > cookies to track session but it may have the same problem of session
    > hijacking/ session stealing.
    >
    > Any one please explain me what is the best way to create shopping
    > cart with SSL, the ASP/ASP.net session or setting own cookies.
    In order to avoid awkward session mapping, you'll need to move the shopping
    cart contents out of your HttpSessionState. You can store the shopping cart
    contents either in a persistent cookie or in a database. Both approaches
    allow your users to keep their shopping cart contents across sessions
    similar to Amazon.

    Cheers,

    --
    Joerg Jooss
    [email]joerg.jooss@gmx.net[/email]


    Joerg Jooss 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