Is it possible to dynamicly control session cookies (scope, domain, name, value) on the fly based on the URL in a session handler or is the cookie managed by the web server?

For instance if I want to generate a different cookie depending on the URL with differeny keys, I generate a cookie based on the URL name that could be scoped at different levels.  I could have a url calls https://apps.company.com/ and decide I want to scope the cookie at company.com.  Is this something I can do pragmatically?  

Thanks

--
Marc Boorshtein
CTO Tremolo Security
marc.boorshtein@tremolosecurity.com