Project

General

Profile

« Previous | Next » 

Revision 5374

Added by berkley almost 14 years ago

refactored the sessionService to use a correct singleton initialization scheme. Added true authentication to ResourceHandler.

View differences:

MetacatHandler.java
356 356
                    + " which has username" + session.getAttribute("username")
357 357
                    + " into hash in login method");
358 358
            try {
359
                SessionService.registerSession(id, 
359
                SessionService.getInstance().registerSession(id, 
360 360
                        (String) session.getAttribute("username"), 
361 361
                        (String[]) session.getAttribute("groupnames"), 
362 362
                        (String) session.getAttribute("password"), 
......
411 411
                    + sess.getAttribute("username")
412 412
                    + " will be invalidate in logout action");
413 413
            sess.invalidate();
414
            SessionService.unRegisterSession(sess.getId());
414
            SessionService.getInstance().unRegisterSession(sess.getId());
415 415
        }
416 416
        
417 417
        // produce output

Also available in: Unified diff