I have two home pages - one for public and one for members only.
If a member is already logged in from previous visits, and the computer remembers his/her log in, I want my website to take s/he directly to member’s homepage next time s/he visits my website again (instead of the public home page).
Is there a way to do this on wix code?
Thanks.
I think I just figured out how to do it.
On home page, at $w.onReady(), I check to see if the visitor is logged in, if yes, then I just use wixLocation.to() to take the logged in user directly to the member’s home page.
Let me know if there is a more elegant way of doing this.
Thanks!
That seems elegant enough. I was going to suggest doing exactly that.