Hacker Newsnew | comments | show | ask | jobs | submit login

Folks who've used tour things like this: how do you detect if it's the first time your users are using your app? Do you make a db query every time they log in? Do you use cookies? Cookies seem unreliable and a flag in the database seems a waste of resources.

Thoughts?




We store a flag on the user that the tour has been seen. The user is always loaded with the page anyway so it's no extra DB calls to get this information.

-----


Ah. Fair enough. Thanks for the tip.

-----




Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: