This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
You have already been asked to use better subject for your posts. "session" is not very descriptive of your question. Also, please show some effort. Have you looked at the API for the session object? All your answers are there.
And, you have previously been warned regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.
Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Be aware that accounts with invalid display names are disabled.
I am closing this post to give you a chance to adjust your display name, do some research on your own, and post back with any follow-on questions using a descriptive subject.