On Thu, Nov 19, 2015 at 4:45 PM, Faiyaz Ahmed <
faiyaza...@gmail.com> wrote:
> Or is it possible to use ReWrite rule?
mod_rewrite has the ability of conditional rewriting based on cookies
(RewriteCond %{HTTP_COOKIE} regex), so in theory, that could be used.
However, I don't think you could do that without modifying DSpace,
because DSpace plants the JSESSIONID cookie regardless of whether your
session is anonymous or logged in. So you would have to modify DSpace
to set another cookie on login with expiration time matching length of
a login session, set it again on each page load while logged in to
prolong the expiration time and remove it when logging out. There
might still be a slight mismatch of the cookie and session expiry
time, though.
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette