Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Possible Duplicate:
How can Stack Overflow automatically login after resetting Safari?

How is be able to automatically logged me in even after Safari's cookies have been cleared. I also cleared Safari' cache and restarted iPad.

I want to implement a similar feature at my site, so I'm wondering how SO is achieving this behaviour.

share|improve this question

migrated from Oct 31 '11 at 2:40

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Chris Frederick, kiamlaluno, BinaryMisfit, Yi Jiang, Pops Oct 31 '11 at 17:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Are you using an OpenID to log in? – Rob W Oct 30 '11 at 10:05
@NoelM I don't think so. He's probably looking for a method to implement the same feature at his own website. – Rob W Oct 30 '11 at 10:07
@Rob W - if that's the case, then the question should state that. – Noel M Oct 30 '11 at 10:08
@NoelM "This is a programming question. So don't move to another site." – Rob W Oct 30 '11 at 10:08
@Rob W Where's the programming question? – Noel M Oct 30 '11 at 10:09
Just stating that it's a programming question doesn't make it one. – Juhana Oct 30 '11 at 10:09
@Rob W: Yes, I used Open ID and I selected not to stay login. – user523234 Oct 30 '11 at 10:11
I will stated it again: This is programming question! – user523234 Oct 30 '11 at 10:12
@RobW You can't login to StackExchange group without an OpenID :) all those login options are OpenID credentials. – balexandre Oct 30 '11 at 10:13
You might want to edit the question so that it looks like one, too. Like, "How can I keep users logged in even after they've cleared cookies and cache, just like SO does?" – Juhana Oct 30 '11 at 10:14
up vote 5 down vote accepted

Stackoverflow is using localStorage to save preferences regarding logging in using OpenID. It's also a form of persistance, similar but not equal to cookies.

You can read this information by typing the following code at the main site:


See also Global Network Auto-Login on the blog, and How does SO's new auto-login feature work? here on Meta.

share|improve this answer
I have some background with .net and used cookies. But did not know this stuff! – user523234 Oct 30 '11 at 10:34
Actually, one should not look at the current site, but at and then peek into localStorage.getItem('GlobalLogin'), @user. Also, just typing localStorage is enough to see all contents for that current site. (That is: in Firebug and the console of any Web Kit browser.) – Arjan Oct 31 '11 at 19:04

Not the answer you're looking for? Browse other questions tagged .