<p>As many of you probably know, online banks nowadays have a security system whereby you are asked some personal questions before you even enter your password.  Once you have answered them, you can choose for the bank to "remember this computer" so that in the future you can login by only entering your password.</p>

<p>How does the "remember this computer" part work?  I know it cannot be cookies, because the feature still works despite the fact that I clear all of my cookies.  I thought it might be by IP address, but my friend with a dynamic IP claims it works for him, too (but maybe he's wrong).  He thought it was MAC address or something, but I strongly doubt that!  So, is there a concept of https-only cookies that I don't clear?</p>

<p>Finally, the programming part of the question: how can I do something similar myself in, say, PHP?</p>

[{'answer_id': 33038, 'author': 'JimmyJ', 'author_id': 2083, 'author_profile': 'https://Stackoverflow.com/users/2083', 'pm_score': 1, 'selected': False, 'text': '<p>It could be a combination of cookies, and ip address logging.</p>\n\n<p>Edit: I have just checked my bank and cleared the cookies. Now I have to re-enter all of my info.</p>\n'}, {'answer_id': 33040, 'author': 'chakrit', 'author_id': 3055, 'author_profile': 'https://Stackoverflow.com/users/3055', 'pm_score': -1, 'selected': False, 'text': "<p>MAC address is possible.</p>\n\n<p>IP to physical location mapping is also a possibility.</p>\n\n<p>User agents and other HTTP headers are quiet unique to each of the machines too.</p>\n\n<p>I'm thinking about those websites that prevents you from using an accelerating download managers. There must be a way.</p>\n"}, {'answer_id': 33045, 'author': 'Brian Warshaw', 'author_id': 1344, 'author_profile': 'https://Stackoverflow.com/users/1344', 'pm_score': 0, 'selected': False, 'text': '<p>Are you using a laptop? Does it remember you, after you delete your cookies, if you access from a different WiFi network? If so, IP/physical location mapping is highly unlikely.</p>\n'}, {'answer_id': 33046, 'author': 'EBGreen', 'author_id': 1358, 'author_profile': 'https://Stackoverflow.com/users/1358', 'pm_score': 1, 'selected': False, 'text': '<p>I think it depends on the bank. My bank does use a cookie since I lose it when I wipe cookies.</p>\n'}, {'answer_id': 33049, 'author': 'Kyle Cronin', 'author_id': 658, 'author_profile': 'https://Stackoverflow.com/users/658', 'pm_score': 1, 'selected': False, 'text': '<p>It is possible for flash files to store a small amount of data on your computer. It\'s also possible that the bank uses that approach to "remember" your computer, but it\'s risky to rely on users having (and not having disabled) flash.</p>\n'}, {'answer_id': 33053, 'author': 'ceejayoz', 'author_id': 1902010, 'author_profile': 'https://Stackoverflow.com/users/1902010', 'pm_score': 1, 'selected': False, 'text': "<p>My bank's site makes me re-authenticate every time a new version of Firefox is out, so there's definitely a user-agent string component in some.</p>\n"}, {'answer_id': 33059, 'author': 'Grey Panther', 'author_id': 1265, 'author_profile': 'https://Stackoverflow.com/users/1265', 'pm_score': 5, 'selected': True, 'text': '<p>In fact they most probably use cookies. An alternative for them would be to use "<a href="http://www.bestflashanimationsite.com/tutorials/4/" rel="noreferrer">flash cookies</a>" (officially called "<a href="http://www.adobe.com/support/flash/action_scripts/local_shared_object/" rel="noreferrer">Local Shared Objects</a>"). They are similar to cookies in that they are tied to a website and have an upper size limit, but they are maintained by the flash player, so they are invisible to any browser tools.</p>\n\n<p>To clear them (and test this theory), you can use <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=52697ee8&amp;sliceId=2" rel="noreferrer">the instructions provided by Adobe</a>. An other nifty (or maybe worrying, depending on your viewpoint) feature is that the LSO storage is shared by all browsers, so using LSO you can identify users <em>even if they switched browser</em> (as long as they are logged in as the same user).</p>\n'}, {'answer_id': 33060, 'author': 'Thomas Owens', 'author_id': 572, 'author_profile': 'https://Stackoverflow.com/users/572', 'pm_score': 0, 'selected': False, 'text': "<p>Based on all these posts, the conclusions that I'm reaching are (1) it depends on the bank and (2) there's probably more than one piece of data that's involved, but see (1).</p>\n"}, {'answer_id': 33319, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>The particular bank I was interested in is Bank of America.</p>\n\n<p>I have confirmed that if I only clear my cookies or my LSOs, the site does not require me to re-enter info.  If, however, I clear both, I had to go through additional authentication.  Thus, that appears to be the answer in my particular case!</p>\n\n<p>But thank you all for the heads-up regarding other banks, and possibilities such as including the User-Agent string.</p>\n'}, {'answer_id': 33578, 'author': 'Florian', 'author_id': 2984, 'author_profile': 'https://Stackoverflow.com/users/2984', 'pm_score': 3, 'selected': False, 'text': "<p>This kind of session tracking is very likely to be done using a combination of a cookie with a unique id identifying your current session, and the website pairing that id with the last IP address you used to connect to their server. That way, if the IP changes, but you still have the cookie, you're identified and logged in, and if the cookie is absent but you have the same IP address as the one save on the server, then they set your cookie to the id paired with that IP.</p>\n\n<p>Really, it's that second possibility that is tricky to get right. If the cookie is missing, and you only have your IP address to show for identification, it's quite unsafe to log someone in just based of that. So servers probably store additional info about you, LSO seem like a good choice, geo IP too, but User Agent, not so much because they don't really say anything about you, every body using the same version of the same browser as you has the same.</p>\n\n<p>As an aside, it has been mentioned above that it could work with MAC adresses. <strong>I strongly disagree!</strong> Your MAC address never reaches your bank's server, as they are only used to identify sides of an Ethernet connection, and to connect to your bank you make a bunch of Ethernet connections: from your computer to your home router, or your ISP, then from there to the first internet router you go through, then to the second, etc... and each time a new connection is made, each machine on each side provide their very own MAC addresses. So your MAC address can only be known to the machines directly connected to you through a switch or hub, because anything else that routes your packets will replace your MAC with their own. Only the IP address stays the same all the way.\nIf MAC addresses did go all the way, it would be a privacy nightmare, as all MAC addresses are unique to a single device, hence to a single person.</p>\n\n<p>This is a slightly simplified explanation because it's not the point of the question, but it seemed useful to clear what looked like a misunderstanding.</p>\n"}]
['https://Stackoverflow.com/questions/33034', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3508/']