Project

General

Profile

« Previous | Next » 

Revision 2219

Added by sgarg almost 20 years ago

Added code to add and remove cookie from the index.jsp when a person logs in or logs out.

View differences:

lib/style/skins/default/include_login.jsp
68 68
      }
69 69
      return true;
70 70
    } 
71
    <%=(isLoggedIn)?
72
        "   document.cookie = \"JSESSIONID=" + sess_sessionId + ";"
73
        +"                  path="          + CONTEXT_NAME  +  "\";\n"
74
        :"  document.cookie = \"JSESSIONID=" + sess_sessionId + ";"
75
        +"                  path="          + CONTEXT_NAME  +  ";"
76
        +"                  expires=Thu, 01-Jan-70 00:00:01 GMT\";\n"
77
    %>
71 78
  </script>
72 79
</head>
73 80

  
lib/style/skins/default/settings.jsp
26 26
  * along with this program; if not, write to the Free Software
27 27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28 28
-->
29
<% 
29
<%
30 30

  
31 31
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
32 32

  
33 33
	// URL of metacat to be used for login & searching:
34 34
	String      METACAT_URL           = "@systemidserver@@servlet-path@";
35 35

  
36
	// CONTEXT NAME of metacat installed:
37
	String      CONTEXT_NAME          = "@html-path@";
38

  
36 39
  //String      relativeRoot          = ".";
37 40
	// label for logout form button when user *is* logged in:
38 41
	String      LOGOUT_LABEL          = "Logout";
39
	
42

  
40 43
	// label for login form button when user is *not* logged in:
41 44
	String      LOGIN_LABEL           = "Login";
42
	
45

  
43 46
	// last part of LDAP username to be appended after organization
44 47
	String      LDAP_DOMAIN           = ",dc=ecoinformatics,dc=org";
45
	
48

  
46 49
	// if true, POST variables echoed at bottom of client's browser window in a big yellow box
47 50
    boolean     DEBUG_TO_BROWSER      = false;
48
	
49
	
51

  
52

  
50 53
	String      COMMON_SEARCH_METACAT_POST_FIELDS   =
51 54
							 "<input type=\"hidden\" name=\"action\"        value=\"query\"\\>\n"
52 55
              +"<input type=\"hidden\" name=\"qformat\"       value=\"default\"\\>\n"
......
71 74
	String      ADVANCED_SEARCH_METACAT_POST_FIELDS   =
72 75
							  "<input type=\"hidden\" name=\"operator\"      value=\"INTERSECT\"\\>\n"
73 76
                +COMMON_SEARCH_METACAT_POST_FIELDS;
74
                              
77

  
75 78
/*******************************************************************************/
76 79
/*******************************************************************************/
77 80
%>

Also available in: Unified diff