Please read this before starting on SSL projects with indy: Indy SSL

Persistent login example using Indy with SSL in Delphi for EBay
- source is pretty well commented so I will not waste time on writing a full article on how persistent login should be done in general.

Source Code