Is that a server side session? If so, I think you would be better off tracking on the server side. You can always make it look nicer, have greater interactivity via javascript later. If this is a server session, is that PHP you are using? I ask because that's the only language I would even have a chance at being able to help with a server side approach to breadcrumbs.