0

The quote.html renders when I click its link from the main page, but when I submit the symbol, the server redirects me to the login page. It never renders quoted.html. I've tried looking at other questions, but none of the questions are what I'm looking for. What is causing the server to redirect me to the login page? Thanks in advance.

Here is my quote.html code:

// edited out

Here is my quoted.html code:

// edited out

Here is my quote() code:

// edited out
1

session.clear() clears the session variables, which holds the user id, which makes @login_required think there is not a logged in user. (Notice the comment before session.clear() in the supplied login route!)

1
  • Thank you! This resolved my issue (there was also a syntax issue). – SuperNovaCoder May 23 '17 at 22:20

You must log in to answer this question.

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