%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
Insert title here
<%
String username=session.getAttribute("em_code").toString();
String url=request.getParameter("url");
if(url.length()==0){
url="/JF";
}
Cookie cookie = new Cookie("jforumSSOCookieNameUser",username);// 保存用户名到Cookie
cookie.setPath("/");
//String host = request.getServerName();//本地测试时注释掉的代码
//cookie.setDomain(host);//本地测试时需注释掉的代码
cookie.setMaxAge(-1);
response.addCookie(cookie);
System.out.println(url);
response.sendRedirect(url);//跳转到jforum论坛,看看是否登录了
%>