Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Secure sockets

 
Simon Good
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
The web services tutorial states that:
If you are using sessions, once you switch to SSL you should never accept any further requests for that session that are non-SSL. For example, a shopping site might not use SSL until the checkout page, then it may switch to using SSL in order to accept your card number. After switching to SSL, you should stop listening to non-SSL requests for this session

If I needed to construct a website where the user is required to log in, add items to their shopping basket and then pay for their items, how would I implement this?
The idea would be that they could log in using https, do their shopping in a normal http way and then pay using https. Isn't this exactly the kind of thing the tutorial states I shouldn't be doing?
This might not be the best place for this posting but the question has arisen from reading the web services tutorial.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The quote says "first HTTP, then HTTPS for checkout". You're saying "first HTTP, then HTTPS for checkout". I don't see any problem here -- the only difference is that the quote suggests staying in HTTPS mode once the customer has stored confidential information into the session using his cookie as the key to this information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic