Skip to main content

Users and Sessions

  • Chapter
  • First Online:
Java EE Web Application Primer
  • 1588 Accesses

Abstract

The user first accesses your site through the login page. The user’s email and password are validated against the database in the login servlet. A user email with the correct matching password is presumed to be a valid user. The valid user is retrieved from the database and stored in the User object. Recall that the User object is generated by the “JPA Generate Entities from Tables” option.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 24.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Dave Wolf, A.J. Henley

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Wolf, D., Henley, A.J. (2017). Users and Sessions. In: Java EE Web Application Primer. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3195-1_14

Download citation

Publish with us

Policies and ethics