$shared_key = md5($user->id . \Input::real_ip() . \Input::user_agent() );Which will generate the same key for this user, as long as it is accessed from the same PC and same browser, which I think comes close to default session behaviour.
It looks like you're new here. If you want to get involved, click one of these buttons!