I tried doing something like this and it works, but I end up with error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Any ideas? Couldn't resolve it with solutions from many Stack Overflow topics.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great job!
Could you update your solution to implement redirection from login page to a profile page when user is already logged-in?
I tried doing something like this and it works, but I end up with error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Any ideas? Couldn't resolve it with solutions from many Stack Overflow topics.