A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Basic question regarding predefined-variable: session
Joined: Jun 01, 2006
Jun 09, 2006 08:38:00
I'm trying to understand the difference between predefined-variable "session" with "request.getSession()".
I read the API and it says something like this for request.getSession():
"Returns the current session associated with this request, or if the request does not have a session, creates one."
I don't understand when I have to call request.getSession() and when I just need to use predefined-variable "session".
Thanks for the advice.
~ Rudy ~
Author and ninkuma
Joined: Jan 10, 2002
Jun 09, 2006 08:52:00
They are one and the same.
Books by Bear
I agree. Here's the link:
subject: Basic question regarding predefined-variable: session
Regarding session in JSPs, a question from Enthuware Mock Exam
Who Creates the HttpSession , User or Weblogic
HttpSession invalidate not working?
Sometimes Session is Lost in Ajax Call
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013