Minor 5.2 changes.

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@349 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
mayhew64
2008-05-13 03:44:40 +00:00
parent 6598829155
commit 29f0222258
4 changed files with 13 additions and 7 deletions

View File

@ -59,6 +59,8 @@ import org.owasp.webgoat.session.WebgoatContext;
public class HammerHead extends HttpServlet
{
private static final String WELCOMED = "welcomed";
/**
*
*/
@ -206,9 +208,9 @@ public class HammerHead extends HttpServlet
// If this session has not seen the landing page yet, go there instead.
HttpSession session = webSession.getRequest().getSession();
if (session.getAttribute("welcomed") == null)
if (session.getAttribute(WELCOMED) == null)
{
session.setAttribute("welcomed", "true");
session.setAttribute(WELCOMED, "true");
page = "/webgoat.jsp";
}
else
@ -432,6 +434,8 @@ public class HammerHead extends HttpServlet
// Create new custom session and save it in the HTTP session
// System.out.println( "HH Creating new WebSession: " );
session = new WebSession(webgoatContext, context);
// Ensure splash screen shows on any restart
hs.removeAttribute(WELCOMED);
hs.setAttribute(WebSession.SESSION, session);
// reset timeout
hs.setMaxInactiveInterval(sessionTimeoutSeconds);

View File

@ -78,7 +78,7 @@ public class HowToWork extends LessonAdapter
*/
public String getTitle()
{
return ("How to work with Webgoat");
return ("How to work with WebGoat");
}
public Element getCredits()