sessionid-encoded URLs patch

"Alex Burgel" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <[email protected]>
hi,

i put a patch in jira
(http://jira.opensymphony.com/secure/ViewIssue.jspa?id=22549)

it attempts to solve the problem of caching pages with session ids encoded
in URLs.

the patch is just a first attempt, so there are some issues... notably, it
doesn't fix anything with the cache filter, in fact it might have broken it.
but aside from that it, it works well.

it works by taking pages that could possibly have a session id in them, and
running them through a filter which replaces the id with a token... then
when the page is removed from the cache it replaces the token with the
current id.

the downside is that it requires 2 versions of each page, 1 with the session
token, and 1 without.

it requires a new property in the oscache.properties file
'cache.use.session.flag.in.key' which is false by default. set it to true to
get this all to work...


please take a look at the patch and send me any comments.

thanks.

--alex




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.