Can I check the value of a kohana 2 session variable before zen cart loads? Can I do this in a php prepend file, or should I do this in zen cart?

Is there anyway to do something like this after calling session start?

session_write_close();
session_name($_COOKIE['zenid']);