![]() |
Working With Sessions in JSP
This article shows you how to track the session between different JSP pages. In any web application user moves from one page to another and it becomes necessary to track the user data and objects throughout the application. JSP provide an implicit object "session", which can be use to save the data specific the particular to the user.In this article we will create an application that takes the user name from the user and then saves into the user session. We will display the saved data to the user in another page.
Here is the code of the JSP file (savenameform.jsp) that takes the input from user: HTML Code:
<%@ page language="java" %>HTML Code:
<%@ page language="java" %>HTML Code:
<%@ page language="java" %> |
Re: Working With Sessions in JSP
i will try the code
|
Re: Working With Sessions in JSP
i need help with sessions in JSP.. i implemented sessions. and it worked correctely..but i got a problem. every time i logout it successfully logouts but if i press the back button on the menu bar it automatically gets redirected back to the page of the user who just logged out... i would like somebody to help..
pls.. |
Re: Working With Sessions in JSP
This JSP Tutorial shows you how to track the session between different JSP pages. In any web application user moves from one page to another and it becomes necessary to track the user data and objects throughout the application. JSP provide an implicit object "session", which can be use to save the data specific the particular to the user.
In this tutorial we will create an application that takes the user name from the user and then saves into the user session. We will display the saved data to the user in another page. Here is the code of the JSP file (savenameform.jsp) that takes the input from user: Code:
<%@ page language="java" %>Code:
<%@ page language="java" %>Code:
<%@ page language="java" %> |
Re: Working With Sessions in JSP
what if i click on back botton i think it will still be logied in ?
|
Re: Working With Sessions in JSP
great me definitely going to try this code.. thanks alot
|
Re: Working With Sessions in JSP
nice buddy this code is used for making the login form whre we need to use sessions to store user's information.
|
Re: Working With Sessions in JSP
Hey buddy,
You are writing code for login but what would happen if click on the back button through browser after login. |
Re: Working With Sessions in JSP
thanks for give information in jsp
|
| All times are GMT +5.5. The time now is 19:41. |