Project

General

Profile

Actions

Bug #1232

closed

cookie needs to be written after knb page login

Added by Matthew Brooke almost 21 years ago. Updated about 17 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
metacat
Target version:
Start date:
12/05/2003
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1232

Description

this actually applies to code in the KNBWEB cvs module, but the consequences
apply to metacat.

here's the scenario:
1) a user logs in on knb homepage (knb.ecoinformatics.org/index.jsp)
2) the search form then has a hidden sessionid field added to it by the jsp
3) user then does a search and gets some private datasets in results
4) what I haven't done is to add the sessionid to the results links
- so when user clicks a dataset, metacat assumes user is "public"
5) when you get "into" a dataset, there are even more links that would need the
sessionid added

...so, the easiest solution would probably be just to write a cookie on login.
This code would probably go in <knbweb_cvs>/includes/include_session_vars.jsp,
where there is a code block for handling login (add code to create cookie here),
and another for handling logout (destroy cookie).

Sample code for writing cookies from java currently exists in the Metacat
module, in the HttpMessage class


Related issues

Blocked by Metacat - Bug #1819: Access control - deny public/allow user read: user couldn't readResolvedSaurabh Garg12/08/2004

Actions
Actions

Also available in: Atom PDF