Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handling the Session

 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How i handle the Session for different Browsers ?
 
dimpsonu arora
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear,
What my knowledge is we handle sessions in the same way for all browser when using JSP.
By default it is set to true.
<%@ page session="true" %>
<%
session.setAttribute("name","abc");
session.setAttribute("address","xyz");

String name=(String) session.getAttribute(name);
String add=(String) session.getAttribute(address);
%>
This is how we handle sessions.If you don't want a session you explicit need to define session="false" in page directive.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic