leveraging login context expiration on login form

Christopher Bongaarts cab at umn.edu
Wed Jul 31 12:13:09 EDT 2013


On 7/31/2013 10:20 AM, Cantor, Scott wrote:
> On 7/31/13 11:06 AM, "Christopher Bongaarts"<cab at umn.edu>  wrote:
>
>> >Is there a way, from within login.jsp, to get the time (preferably in
>> >UNIX time_t but any format will do) that the current loginContext will
>> >expire?  A cursory examination of the methods of loginContext didn't
>> >reveal anything obvious.
> It's not stored there, there's an Entry object around it that carries the
> value. It's quite long, apparently, a half hour. I wouldn't have expected
> that.

OK, so unless there's some secret shortcut, I'll just copy+paste the 
guts of HttpServletHelper.getLoginContext() into my jsp and call 
getExpirationTime() on the entry object.

-- 
%%  Christopher A. Bongaarts   %%  cab at umn.edu          %%
%%  OIT - Identity Management  %%  http://umn.edu/~cab  %%
%%  University of Minnesota    %%  +1 (612) 625-1809    %%



More information about the users mailing list