This post has been de-listed (Author was flagged for spam)
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm getting back into JSP again but I forget how I handled this before. For things like login information that you want each page on a website to remember, you don't want to just store some userId in the URL ("index.jsp?userId=12345"), otherwise you could type in random numbers and be logged in as someone else. I think I used session.setAttribute before, but I don't remember how I used it.
I don't know how to do a hyperlink to set it though. Last time, I remember sending it to a Servlet and somehow the servlet did setAttribute and then a redirect back to index.jsp or something. Anyone have insight into how it's done?
Subreddit
Post Details
- Posted
- 12 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnprogra...