Michael Day wrote:
> Heh, no, other technologies *do* have a better solution, which is simply
> to not create sessions unless they are needed.  They still append
> session ids, but only when necessary.  So if a (cookie-less) user goes
> to a news site and reads 10 articles, he still doesn't have a session. 
> Now he logs into his account.  When he goes back to read more articles,
> the session id should be appended.  This does not affect search engines
> in any way.

I'm not sure what you're getting at here with this hypothetical news
site example. Logging in is not the only good reason to create a
session. Keeping track of where a user has been has obvious benefits,
which is why Amazon, your ideal example, creates sessions immediately.
If you allow any non-login session, the crawler will follow it, then all
your other links are busted. (Until you do something to stop the crawler.)

Besides, if there's good technological support the scenario above, what
sites are actually using it? I just tried to log in to cnn.com with
cookies disabled and I can't -- and they're using Java! Looks like
they've chosen my not-so-original workaround of turning off rewriting.

> [...]  possibly use a separate
> technology, like a standalone servlet or something just for that one form.

You could do it without leaving Wicket to that extent, since the plain
request object is still available.

> By the way, if you want to see a *perfect* implementation, look at
> amazon.  [...]

I agree that they've solved the problem well, undoubtedly through miles
and miles of their own code. You could do the same in a Wicket
application already, if you wanted to badly enough. Sniff for Google,
override the request cycle and turn off rewriting.

>> If we're able to generate (at runtime?) a robots.txt that guides a
>> [...]
> This is a cool idea, but it is something that can and has been done
> manually since forever.
> [...]

Right, manually. I think the only problem here is that Wicket does so
many things automatically that people are expecting it to manage search
crawlers too. One day, it will.

It's a bummer that it creates a session before it absolutely has to, but
I think we've established that fixing it wouldn't solve the crawler
problem on its own. It might be part of the solution, or it might not.
If we can do it with robots.txt and some sniffing, I don't think it's
worth disrupting RequestCycle.

> With all that said, I don't think any of us expect that this issue will
> be fixed in 1.2.  The purpose of the discussion was to bring light to an
> issue that most of the core developers probably don't encounter.

Yes, thanks for bringing it up, crawlers are easy to blow off when all
your apps are internal or just for kicks. Wicket is growing up though,
and it's time to face Google.

Nathan



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to