0

Is session created after deploying the application into the server or after logging into the application?

3 Answers3

0

A user session is/(should be) created after the successful login of the user into the system and it will be valid till the user logs out of the system or the session expires after the session timeout.

codeMan
  • 5,730
  • 3
  • 27
  • 51
0

When I think in terms of tomcat (for example), when the user logs in, and there is a call for creating a new session, Tomcat creates a sessionID cookie and sends it back to the browser so that this state is preserved in the browser. When the session is invalidated, this cookie is deleted.

TechSpellBound
  • 2,505
  • 6
  • 25
  • 36
0

Is session created after deploying the application into the server

Of course not. A session is associated with a user. There are no users at deployment time. The question doesn't begin to make sense.

or after logging into the application?

Yes, or whenever a session is requested after the user's existing session has been invalidated.

user207421
  • 305,947
  • 44
  • 307
  • 483