Results 1 to 2 of 2
Thread: sessions doubt
- 11-16-2010, 01:06 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
sessions doubt
i opened one browser and typed one jsp page in the one form is there in that one only username is there i typed that username and clik on submit and navigate to another page
<HTML>
<BODY>
<FORM METHOD=POST ACTION="SaveName.jsp">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
SaveName.jsp :
<%
String name = request.getParameter( "username" );
session.setAttribute( "theName", name );
%>
<HTML>
<BODY>
<A HREF="NextPage.jsp">Continue</A>
</BODY>
</HTML>
NextPage.jsp shows how to retrieve the saved name.
<HTML>
<BODY>
Hello, <%= session.getAttribute( "theName" ) %>
</BODY>
</HTML>
here my doubt is i opened another browser and getting the same user is it possible
- 11-16-2010, 01:22 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,448
- Rep Power
- 16
Similar Threads
-
Kill sessions
By Subscribe.name in forum Java ServletReplies: 1Last Post: 10-05-2009, 10:22 PM -
problem with sessions
By lisa.lipsky in forum JavaServer Pages (JSP) and JSTLReplies: 6Last Post: 09-09-2009, 01:46 AM -
Http Sessions
By manasa in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 03-29-2008, 10:51 AM -
Sessions in jsp
By Ed in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-02-2007, 03:46 PM -
sessions in jsp
By Heather in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-30-2007, 03:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks