getSession() ou getSession(boolean)

1 resposta
marciolx

na prática quando eu uso um ou outro? faz diferença?

1 Resposta

cariocathi
HttpSession getSession()

Returns the current session associated with this request, or if the request does not have a session, creates one.

HttpSession getSession(boolean create)

Returns the current HttpSession associated with this request or, if necessary, creates a new session for the request.

a api é a luz no fim do túnel… :lol:

Criado 20 de fevereiro de 2004
Ultima resposta 21 de fev. de 2004
Respostas 1
Participantes 2